route

package
v0.0.0-...-8b43ef2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2014 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	sync.Mutex

	ApplicationId     string
	Host              string
	Port              uint16
	Tags              map[string]string
	PrivateInstanceId string
}

func (*Endpoint) CanonicalAddr

func (e *Endpoint) CanonicalAddr() string

func (*Endpoint) MarshalJSON

func (e *Endpoint) MarshalJSON() ([]byte, error)

func (*Endpoint) ToLogData

func (e *Endpoint) ToLogData() interface{}

type Pool

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

func NewPool

func NewPool() *Pool

func (*Pool) Add

func (p *Pool) Add(endpoint *Endpoint)

func (*Pool) FindByPrivateInstanceId

func (p *Pool) FindByPrivateInstanceId(id string) (*Endpoint, bool)

func (*Pool) IsEmpty

func (p *Pool) IsEmpty() bool

func (*Pool) MarshalJSON

func (p *Pool) MarshalJSON() ([]byte, error)

func (*Pool) Remove

func (p *Pool) Remove(endpoint *Endpoint)

func (*Pool) Sample

func (p *Pool) Sample() (*Endpoint, bool)

type Uri

type Uri string

func (Uri) ToLower

func (u Uri) ToLower() Uri

Jump to

Keyboard shortcuts

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