Documentation
¶
Overview ¶
Package server implements rest server handling "jump" requests and optionally updating stats service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogRecord ¶ added in v1.1.0
type LogRecord struct {
ID string `json:"id,omitempty"`
FromIP string `json:"from_ip"`
TS time.Time `json:"ts,omitempty"`
FileName string `json:"file_name"`
Service string `json:"service"`
DestHost string `json:"dest"`
Referer string `json:"referer"`
}
LogRecord for stats
type Picker ¶ added in v1.1.0
type Picker interface {
Pick(svc string, resource string) (resURL string, node picker.Node, err error)
Nodes() map[string][]picker.Node
Status() (bool, []string)
}
Picker defines pick method to return final redirect url from service and resource
type RLBServer ¶
type RLBServer struct {
// contains filtered or unexported fields
}
RLBServer - main rlb server
func NewRLBServer ¶
NewRLBServer makes a new rlb server for map of services
Click to show internal directories.
Click to hide internal directories.