route

package
v0.0.0-...-c328704 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_ROUTE       = "route"
	CMD_ROUTE_REPLY = "route:reply"
)

Variables

View Source
var (
	ErrNotSupportedType = errors.New("not supported type")
)

Functions

func ClientSide

func ClientSide(nextHandleFunc protocal.HandshakeHandleFunc, nextCmd string, nextDetails interface{}) protocal.HandshakeHandleFunc

func ServerSide

func ServerSide(router *service.Router) protocal.HandshakeHandleFunc

Types

type Reply

type Reply struct {
	OK  bool
	Err string
}

type RouteReq

type RouteReq struct {
	Type Type
}

type Type

type Type string
const (
	KeepAlive Type = "keepalive"
	Expose    Type = "expose"
	Link      Type = "link"
	Forward   Type = "forward"
)

Jump to

Keyboard shortcuts

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