transport

package
v0.0.0-...-f9b9731 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConn

func NewClientConn(cfg Config) (net.Conn, error)

func NewServerListener

func NewServerListener(cfg Config) (net.Listener, error)

Types

type Config

type Config struct {
	TlsEnabled    *bool
	Tls2Way       *bool // true = server verifies a client
	TlsSkipVerify *bool // true = client skips verifying a server (e.g. hostname match)
	TlsCAFile     string
	TlsKeyFile    string
	TlsCertFile   string
	ListenAddr    string
}

func (*Config) Apply

func (c *Config) Apply(other *Config)

func (*Config) Check

func (c *Config) Check() error

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL