Documentation
¶
Index ¶
- Constants
- func GenerateCertAndKeyPEM() ([]byte, []byte, error)
- func GenerateTLSConfig() (*tls.Config, error)
- func NewClientCmd() *cobra.Command
- func NewServerCmd() *cobra.Command
- func RunClient(ctx context.Context, localAddr string, remoteAddr string, insecure bool, ...) error
- func RunServer(ctx context.Context, listenAddr string, remoteUDPAddr string, ...) error
- type Authenticator
Constants ¶
View Source
const ( AuthHeader = "X-Uoq-Authentication" AuthMethod = "POST / HTTP/1.1" AuthStatusOK = "200 OK" AuthOK = "HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n" MaxAuthRetries = 10 AuthRetryInterval = 500 * time.Millisecond )
View Source
const ( DefaultBufferSize = 1400 AlpnH3 = "h3" DefaultQUICKeepAliveInterval = 10 * time.Second TestLocalAddr = "127.0.0.1:0" TestSecret = "test-secret" )
Variables ¶
This section is empty.
Functions ¶
func GenerateCertAndKeyPEM ¶
func GenerateTLSConfig ¶
func NewClientCmd ¶
func NewServerCmd ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
Secret string
}
func (*Authenticator) AuthenticateClient ¶
func (*Authenticator) AuthenticateServer ¶
Click to show internal directories.
Click to hide internal directories.