Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogger ¶
SetDefaultLogger is to set logger for vpn client.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is to use a dependency injection for handler.
type OptionFunc ¶
type OptionFunc func(c *config)
OptionFunc is a function for Option interface.
func WithAuthMethod ¶
func WithAuthMethod(f auth.ClientAuthMethod) OptionFunc
WithAuthMethod returns OptionFunc for inserting auth method.
func WithGRPCInsecure ¶ added in v1.2.0
func WithGRPCInsecure(b bool) OptionFunc
WithGRPCInsecure returns OptionFunc for inserting grpc insecure.
func WithSelfSignedCertification ¶ added in v1.2.0
func WithSelfSignedCertification(cert string) OptionFunc
WithSelfSignedCertification returns OptionFunc for inserting grpc custom certification
func WithServerAddr ¶
func WithServerAddr(addr string) OptionFunc
WithServerAddr returns OptionFunc for inserting server addr.
func WithServerPort ¶
func WithServerPort(port string) OptionFunc
WithServerPort returns OptionFunc for inserting server port.
Click to show internal directories.
Click to hide internal directories.