transport

package
v0.0.0-...-f4608ee Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKCPTransport

func NewKCPTransport(
	bindAddr string,
	advertise net.Addr,
	maxPool int,
	timeout time.Duration,
	logOutput io.Writer,
) (*raft.NetworkTransport, error)

Types

type KCPStreamLayer

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

func (*KCPStreamLayer) Accept

func (ksl *KCPStreamLayer) Accept() (net.Conn, error)

func (*KCPStreamLayer) Addr

func (ksl *KCPStreamLayer) Addr() net.Addr

func (*KCPStreamLayer) Close

func (ksl *KCPStreamLayer) Close() error

func (*KCPStreamLayer) Dial

func (ksl *KCPStreamLayer) Dial(address raft.ServerAddress, timeout time.Duration) (net.Conn, error)

Jump to

Keyboard shortcuts

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