Documentation ¶
Index ¶
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
}
Client a hermes client
type ClientAuthenticator ¶
ClientAuthenticator generates a password for a connection
type ClientOption ¶
type ClientOption func(*Client)
ClientOption applies client options
func WithLocalHost ¶
func WithLocalHost(host string) ClientOption
WithLocalHost update the local IP to forward to
func WithPassword ¶
func WithPassword(password string) ClientOption
WithPassword sets client password
func WithServerAddress ¶
func WithServerAddress(addr *net.TCPAddr) ClientOption
WithServerAddress sets a custom hermes address
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server a hermes server
type ServerAuthenticator ¶
ServerAuthenticator validates a client password
type ServerOption ¶
type ServerOption func(*Server)
ServerOption applies server options
func WithServerPassword ¶
func WithServerPassword(password string) ServerOption
WithServerPassword sets server password
func WithServerTLS ¶
func WithServerTLS(port int, tlsCfg *tls.Config) ServerOption
WithServerTLS enables TLS
Click to show internal directories.
Click to hide internal directories.