server

package
v0.0.0-...-48b11af Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2014 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Types

type Api

type Api int

func (*Api) BuildTunnel

func (t *Api) BuildTunnel(args *client.BuildTunnelArgs, reply *client.BuildTunnelReply) (err error)

func (*Api) CreateSegment

func (t *Api) CreateSegment(args *client.CreateSegmentArgs, reply *client.CreateSegmentReply) (err error)

func (*Api) CreateTunnel

func (t *Api) CreateTunnel(args *client.CreateTunnelArgs, reply *client.CreateTunnelReply) (err error)

func (*Api) DeleteSegment

func (t *Api) DeleteSegment(args *client.DeleteSegmentArgs, reply *client.DeleteSegmentReply) (err error)

func (*Api) DeleteTunnel

func (t *Api) DeleteTunnel(args *client.DeleteTunnelArgs, reply *client.DeleteTunnelReply) (err error)

func (*Api) DestroyTunnel

func (t *Api) DestroyTunnel(args *client.DestroyTunnelArgs, reply *client.DestroyTunnelReply) (err error)

func (*Api) Echo

func (t *Api) Echo(args *client.EchoArgs, reply *client.EchoReply) (err error)

func (*Api) GetSrcIP

func (t *Api) GetSrcIP(args *client.GetSrcIPArgs, reply *client.GetSrcIPReply) (err error)

type ConnectionInfo

type ConnectionInfo struct {
	Proto    string
	Ns       netns.NsHandle
	Hostname string
	Port     int
}

type IPInUse

type IPInUse error

type NoPortsAvailable

type NoPortsAvailable error

type Segment

type Segment struct {
	Head      ConnectionInfo
	Tail      ConnectionInfo
	Init      []client.SegmentCommand
	Trig      []client.SegmentCommand
	ChildHost string
	ChildId   string
	Proxy     *proxy.Proxier
	DockerIds []string
}

func NewSegment

func NewSegment() *Segment

func (*Segment) Cleanup

func (s *Segment) Cleanup()

func (*Segment) Initialize

func (s *Segment) Initialize() error

func (*Segment) NextEndpoint

func (s *Segment) NextEndpoint(service string, srcAddr net.Addr) (netns.NsHandle, string, error)

NextEndpoint is an implementation of the loadbalancer interface for proxy.

func (Segment) String

func (s Segment) String() string

func (*Segment) Trigger

func (s *Segment) Trigger() error

Jump to

Keyboard shortcuts

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