net

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(cfg *DialerConfig) *net.Dialer

Types

type DialerConfig

type DialerConfig struct {
	Timeout   *kilntypes.Duration
	KeepAlive *kilntypes.Duration
}

func (*DialerConfig) SetDefault

func (cfg *DialerConfig) SetDefault() *DialerConfig

type Entrypoint added in v0.3.0

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

func NewEntrypoint added in v0.3.0

func NewEntrypoint(cfg *EntrypointConfig) (*Entrypoint, error)

func (*Entrypoint) Listen added in v0.3.0

func (lstnr *Entrypoint) Listen(ctx context.Context) (l net.Listener, err error)

func (*Entrypoint) Logger added in v0.3.0

func (lstnr *Entrypoint) Logger() logrus.FieldLogger

func (*Entrypoint) SetLogger added in v0.3.0

func (lstnr *Entrypoint) SetLogger(logger logrus.FieldLogger)

type EntrypointConfig added in v0.3.0

type EntrypointConfig struct {
	Network string `json:"network"`
	Address string `json:"address"`

	KeepAlive *types.Duration

	TLSConfig *kilntls.Config
}

func (*EntrypointConfig) SetDefault added in v0.3.0

func (cfg *EntrypointConfig) SetDefault() *EntrypointConfig

Directories

Path Synopsis
testutils
Package httptestutils is a generated GoMock package.
Package httptestutils is a generated GoMock package.
testutils
Package jsonrpctestutils is a generated GoMock package.
Package jsonrpctestutils is a generated GoMock package.

Jump to

Keyboard shortcuts

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