connman

package
v0.8.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConnection = errors.New("no connection")

Functions

This section is empty.

Types

type ConnectionManager

type ConnectionManager struct {
	DialerDoneCallback      func(string, *revdial.Dialer)
	DialerKeepAliveCallback func(string, *revdial.Dialer)
	// contains filtered or unexported fields
}

func New

func New() *ConnectionManager

func (*ConnectionManager) Dial

func (m *ConnectionManager) Dial(ctx context.Context, key string) (net.Conn, error)

func (*ConnectionManager) Set

func (m *ConnectionManager) Set(key string, conn net.Conn)

Jump to

Keyboard shortcuts

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