tls

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 6 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 (d *Tls) DialStream(ctx context.Context) (stream.Stream, error)

func (*Tls) Targets added in v0.5.0

func (d *Tls) Targets() (balance.PolicyEnum, []stream.Dialer)

Jump to

Keyboard shortcuts

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