//
pkg.gl
Category
github.com/samaritan-proxy/samaritan
host
package
1.0.0-rc1
Repository:
https://github.com/samaritan-proxy/samaritan.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
7
Files
383 SLOC
#
Functions
IsEqual
IsEqual returns whether two hosts are the same.
New
New creates a host instance.
NewSet
NewSet creates a set.
NewStats
NewStats creates a stats container for host.
NewWithType
NewWithType creates a host instance with specified type.
ParseType
ParseType always returns a valid Type.
#
Constants
TypeBackup
Available host types.
TypeMain
Available host types.
#
Structs
Host
Host represents a backend host.
Set
Set is a hosts container.
Stats
Stats describes the stats of a host.
#
Type aliases
Type
Type indicates the type of host.