inproc

package
Version: v0.0.0-...-f10b52b Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OptionDomains is option's domain
	OptionDomains = append(transport.OptionDomains, "inproc")
	// Options for inproc
	Options = inprocOptions{
		ReadBuffer: options.NewIntOption(8 * 1024),
	}
)

Functions

This section is empty.

Types

type NewPipeFunc

type NewPipeFunc func(laddr, raddr net.Addr, opts options.Options) (net.Conn, net.Conn)

NewPipeFunc create a pipe

type Tran

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

Tran is inproc transport

func NewTransport

func NewTransport(name string, newPipe NewPipeFunc) *Tran

NewTransport create a inproc transport

func (*Tran) NewDialer

func (t *Tran) NewDialer(addr string) (transport.Dialer, error)

NewDialer create a dialer to addr

func (*Tran) NewListener

func (t *Tran) NewListener(addr string) (transport.Listener, error)

NewListener create a listener on addr

func (*Tran) Scheme

func (t *Tran) Scheme() string

Scheme transport's scheme

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL