Documentation ¶
Index ¶
- func RegisterConfig(kind string, config Config)
- type ClientConfig
- type Config
- type DefaultConfig
- type DefaultConfigOptions
- type Dialer
- type Keypair
- type Keypairs
- type ListenerFunc
- type SSCConfig
- func (config *SSCConfig) Build(options configures.Config) (err error)
- func (config *SSCConfig) Client() (cliTLS *tls.Config, dialer Dialer)
- func (config *SSCConfig) NewListener(inner net.Listener) (ln net.Listener)
- func (config *SSCConfig) Server() (srvTLS *tls.Config, ln ListenerFunc)
- func (config *SSCConfig) TLS() (serverTLS *tls.Config, clientTLS *tls.Config, err error)
- type SSCConfigOptions
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfig ¶
Types ¶
type ClientConfig ¶
type Config ¶
type Config interface { Build(options configures.Config) (err error) Server() (srvTLS *tls.Config, ln ListenerFunc) Client() (cliTLS *tls.Config, dialer Dialer) }
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func (*DefaultConfig) Build ¶
func (config *DefaultConfig) Build(options configures.Config) (err error)
func (*DefaultConfig) Client ¶
func (config *DefaultConfig) Client() (cliTLS *tls.Config, dialer Dialer)
func (*DefaultConfig) Server ¶
func (config *DefaultConfig) Server() (srvTLS *tls.Config, ln ListenerFunc)
type DefaultConfigOptions ¶
type DefaultConfigOptions struct { CA []string `json:"ca"` Server *ServerConfig `json:"server"` Client *ClientConfig `json:"client"` }
type Keypairs ¶
type Keypairs []Keypair
func (Keypairs) Certificates ¶
func (kps Keypairs) Certificates() (tlcps []tlcp.Certificate, standards []tls.Certificate, err error)
type SSCConfig ¶
type SSCConfig struct {
// contains filtered or unexported fields
}
func (*SSCConfig) NewListener ¶
type SSCConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.