Documentation ¶
Index ¶
- func CheckPrivateKey(privKey crypto.PrivateKey) (success bool)
- func CheckPublicKey(pubkey crypto.PublicKey) (keyError error)
- func GenerateConfigFiles(address string, bindAddress *string) error
- func GenerateKeys() (publicKeyString, privateKeyString *string, keyError error)
- func GenerateNewConfigPair(address string, bindAddress *string) (*ServerConfig, *ClientConfig, error)
- func NewClientConnection(config replicant.ClientConfig, conn net.Conn) (net.Conn, error)
- func NewReplicantClientConnectionState(config replicant.ClientConfig) (*replicant.ConnectionState, error)
- func NewReplicantServerConnectionState(config replicant.ServerConfig, polishServer polish.Server, conn net.Conn) (*replicant.ConnectionState, error)
- func NewServerConnection(config replicant.ServerConfig, conn net.Conn) (net.Conn, error)
- func ResolveAddr(addrStr string) (*net.TCPAddr, error)
- type ClientConfig
- type ServerConfig
- type TransportClient
- type TransportServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPrivateKey ¶ added in v3.0.4
func CheckPrivateKey(privKey crypto.PrivateKey) (success bool)
func CheckPublicKey ¶ added in v3.0.4
func GenerateConfigFiles ¶ added in v3.0.8
func GenerateKeys ¶ added in v3.0.8
func GenerateNewConfigPair ¶ added in v3.0.8
func GenerateNewConfigPair(address string, bindAddress *string) (*ServerConfig, *ClientConfig, error)
func NewClientConnection ¶
func NewReplicantClientConnectionState ¶
func NewReplicantClientConnectionState(config replicant.ClientConfig) (*replicant.ConnectionState, error)
func NewReplicantServerConnectionState ¶
func NewReplicantServerConnectionState(config replicant.ServerConfig, polishServer polish.Server, conn net.Conn) (*replicant.ConnectionState, error)
func NewServerConnection ¶
Types ¶
type ClientConfig ¶
type ServerConfig ¶
type TransportClient ¶
type TransportClient struct { Config ClientConfig Address string // TODO: Dialer can be removed later (both here and in dispatcher) Dialer proxy.Dialer }
func NewClient ¶
func NewClient(config ClientConfig, dialer proxy.Dialer) TransportClient
type TransportServer ¶
type TransportServer struct { Config ServerConfig Address string // TODO: Dialer can be removed later (both here and in dispatcher) Dialer proxy.Dialer }
func NewServer ¶
func NewServer(config ServerConfig, address string, dialer proxy.Dialer) TransportServer
Click to show internal directories.
Click to hide internal directories.