trafcacc

package
v0.0.0-...-915fedf Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2016 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BACKEND  tag = true
	FRONTEND tag = false
)

BACKEND FRONTEND tag the role that instance played with

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	Setup(string)
	Dial() (net.Conn, error)
	DialTimeout(timeout time.Duration) (net.Conn, error)
	// contains filtered or unexported methods
}

Dialer TODO: comment

func NewDialer

func NewDialer() Dialer

NewDialer TODO: comment

type Handler

type Handler interface {
	Serve(net.Conn)
}

Handler TODO: comment

type Serve

type Serve interface {
	HandleFunc(listento string, handler func(net.Conn))
	Handle(listento string, handler Handler)
}

Serve TODO: comment

func NewServe

func NewServe() Serve

NewServe allocates and returns a new ServeMux.

type Trafcacc

type Trafcacc interface {
	Status()
	WaitforAlive()
}

Trafcacc give a interface to query running status

func Accelerate

func Accelerate(l, u string, role tag) Trafcacc

Accelerate traffic by setup front-end dialer and back-end server

Jump to

Keyboard shortcuts

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