rateplan

package
v0.0.0-...-ad17343 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewConn

func NewConn(conn net.Conn, plans rateplan.RatePlans) *Conn

func (*Conn) Write

func (conn *Conn) Write(b []byte) (int, error)

type Dialer

type Dialer struct {
	Plans rateplan.RatePlans
}

func NewDialer

func NewDialer(plans rateplan.RatePlans) *Dialer

func ParseDialer

func ParseDialer(s string) (*Dialer, error)

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, target string) (net.Conn, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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