Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LocalPrivateKey PrivateKey `toml:"local_private_key"`
LocalNetwork *IPNet `toml:"local_network"`
RemotePublicKey PublicKey `toml:"remote_public_key"`
RemoteNetwork *IPNet `toml:"remote_network"`
Endpoint string `toml:"endpoint"`
DNS net.IP `toml:"dns"`
KeepAlive int `toml:"keepalive"`
MTU int `toml:"mtu"`
LogLevel int `toml:"log_level"`
}
type IPNet ¶
type IPNet net.IPNet
func (*IPNet) MarshalText ¶
func (n *IPNet) MarshalText() ([]byte, error)
func (*IPNet) UnmarshalText ¶
func (n *IPNet) UnmarshalText(text []byte) error
type PrivateKey ¶
type PrivateKey device.NoisePrivateKey
func (PrivateKey) MarshalText ¶
func (pk PrivateKey) MarshalText() ([]byte, error)
func (*PrivateKey) UnmarshalText ¶
func (pk *PrivateKey) UnmarshalText(text []byte) error
type PublicKey ¶
type PublicKey device.NoisePublicKey
func (PublicKey) MarshalText ¶
func (pk PublicKey) MarshalText() ([]byte, error)
func (*PublicKey) UnmarshalText ¶
func (pk *PublicKey) UnmarshalText(text []byte) error
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func (*Tunnel) DialContext ¶
func (t *Tunnel) DialContext(ctx context.Context, network, addr string) (net.Conn, error)
Click to show internal directories.
Click to hide internal directories.