common

package
v0.0.0-...-2831398 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	IP []byte

	// Unhealthy is closed when the backend is determined to be unhealthy.
	Unhealthy chan struct{}
}

Backend keeps track of a backend's IP address and whether the backend has become unhealthy.

type FiveTuple

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

A FiveTuple consists of source and destination IP and port, along with the IP protocol version number.

func NewFiveTuple

func NewFiveTuple(data []byte) *FiveTuple

NewFiveTuple constructs a new five-tuple.

func (*FiveTuple) Hash

func (p *FiveTuple) Hash() uint64

Hash returns the five-tuple hash.

Jump to

Keyboard shortcuts

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