tls

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTlsWithConfig

func NewTlsWithConfig(conf *Config) stream.Dialer

Types

type Config

type Config struct {
	Dialer stream.Dialer
	TLS    tls.TLS
}

type Tls

type Tls struct {
	// contains filtered or unexported fields
}

func NewTls

func NewTls(dialer stream.Dialer, tlsConfig tls.TLS) *Tls

func (*Tls) DialStream

func (t *Tls) DialStream(ctx context.Context) (stream.Stream, error)

func (*Tls) IsVirtual added in v0.7.0

func (t *Tls) IsVirtual() bool

func (*Tls) Policy added in v0.5.2

func (t *Tls) Policy() balance.Policy

func (*Tls) String added in v0.5.2

func (t *Tls) String() string

func (*Tls) Targets added in v0.5.0

func (t *Tls) Targets() []stream.Dialer

Jump to

Keyboard shortcuts

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