Documentation ¶
Index ¶
- type Client
- type ClientOption
- func ClientControlAddress(address string) ClientOption
- func ClientControlCAs(certFile string) ClientOption
- func ClientDestination(name, addr string, route model.RouteOption) ClientOption
- func ClientDirectAddress(address string) ClientOption
- func ClientLogger(logger *slog.Logger) ClientOption
- func ClientSource(name, addr string, route model.RouteOption) ClientOption
- func ClientToken(token string) ClientOption
- type Server
- type ServerOption
- func ServerClientTokens(tokens ...string) ServerOption
- func ServerControlAddress(address string) ServerOption
- func ServerControlCertificate(certFile, keyFile string) ServerOption
- func ServerLogger(logger *slog.Logger) ServerOption
- func ServerRelayAddress(address string) ServerOption
- func ServerRelayHostname(hostname string) ServerOption
- func ServerStoreDir(dir string) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...ClientOption) (*Client, error)
type ClientOption ¶
type ClientOption func(cfg *clientConfig) error
func ClientControlAddress ¶
func ClientControlAddress(address string) ClientOption
func ClientControlCAs ¶
func ClientControlCAs(certFile string) ClientOption
func ClientDestination ¶
func ClientDestination(name, addr string, route model.RouteOption) ClientOption
func ClientDirectAddress ¶
func ClientDirectAddress(address string) ClientOption
func ClientLogger ¶
func ClientLogger(logger *slog.Logger) ClientOption
func ClientSource ¶
func ClientSource(name, addr string, route model.RouteOption) ClientOption
func ClientToken ¶
func ClientToken(token string) ClientOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(opts ...ServerOption) (*Server, error)
type ServerOption ¶
type ServerOption func(*serverConfig) error
func ServerClientTokens ¶
func ServerClientTokens(tokens ...string) ServerOption
func ServerControlAddress ¶
func ServerControlAddress(address string) ServerOption
func ServerControlCertificate ¶
func ServerControlCertificate(certFile, keyFile string) ServerOption
func ServerLogger ¶
func ServerLogger(logger *slog.Logger) ServerOption
func ServerRelayAddress ¶
func ServerRelayAddress(address string) ServerOption
func ServerRelayHostname ¶
func ServerRelayHostname(hostname string) ServerOption
func ServerStoreDir ¶
func ServerStoreDir(dir string) ServerOption
Click to show internal directories.
Click to hide internal directories.