Documentation ¶
Index ¶
- Constants
- type FileDescriptor
- type MuxServer
- func (m *MuxServer) AddHostListener(h *backend.Host, l *backend.Listener) error
- func (m *MuxServer) DeleteEndpoint(upstream *backend.Upstream, endpointId string) error
- func (m *MuxServer) DeleteHost(hostname string) error
- func (m *MuxServer) DeleteHostListener(host *backend.Host, listenerId string) error
- func (m *MuxServer) DeleteLocation(host *backend.Host, locationId string) error
- func (m *MuxServer) DeleteLocationMiddleware(host *backend.Host, loc *backend.Location, mType, mId string) error
- func (m *MuxServer) DeleteUpstream(upstreamId string) error
- func (m *MuxServer) GetEndpointStats(e *backend.Endpoint) (*backend.RoundTripStats, error)
- func (m *MuxServer) GetFiles() ([]*FileDescriptor, error)
- func (m *MuxServer) GetLocationStats(l *backend.Location) (*backend.RoundTripStats, error)
- func (m *MuxServer) GetTopEndpoints(upstreamId string) ([]*backend.Endpoint, error)
- func (m *MuxServer) GetTopLocations(hostname, upstreamId string) ([]*backend.Location, error)
- func (m *MuxServer) GetUpstreamStats(u *backend.Upstream) (*backend.RoundTripStats, error)
- func (m *MuxServer) Start() error
- func (m *MuxServer) Stop(wait bool)
- func (m *MuxServer) String() string
- func (m *MuxServer) TakeFiles(files []*FileDescriptor) error
- func (m *MuxServer) UpdateHostKeyPair(hostname string, keyPair *backend.KeyPair) error
- func (m *MuxServer) UpdateLocationOptions(host *backend.Host, loc *backend.Location) error
- func (m *MuxServer) UpdateLocationPath(host *backend.Host, loc *backend.Location, path string) error
- func (m *MuxServer) UpdateLocationUpstream(host *backend.Host, loc *backend.Location) error
- func (m *MuxServer) UpsertEndpoint(upstream *backend.Upstream, e *backend.Endpoint) error
- func (m *MuxServer) UpsertHost(host *backend.Host) error
- func (m *MuxServer) UpsertLocation(host *backend.Host, loc *backend.Location) error
- func (m *MuxServer) UpsertLocationMiddleware(host *backend.Host, loc *backend.Location, mi *backend.MiddlewareInstance) error
- func (m *MuxServer) UpsertUpstream(u *backend.Upstream) error
- type NewServerFn
- type Options
- type Reporter
- type Server
Constants ¶
View Source
const ( Metrics = "_metrics" PerfMon = "_perfMon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDescriptor ¶
func (*FileDescriptor) String ¶
func (fd *FileDescriptor) String() string
func (*FileDescriptor) ToListener ¶
func (fd *FileDescriptor) ToListener() (net.Listener, error)
type MuxServer ¶
type MuxServer struct {
// contains filtered or unexported fields
}
MuxServer is capable of listening on multiple interfaces, graceful shutdowns and updating TLS certificates
func (*MuxServer) AddHostListener ¶
func (*MuxServer) DeleteEndpoint ¶
func (*MuxServer) DeleteHost ¶
func (*MuxServer) DeleteHostListener ¶
func (*MuxServer) DeleteLocation ¶
func (*MuxServer) DeleteLocationMiddleware ¶
func (*MuxServer) DeleteUpstream ¶
func (*MuxServer) GetEndpointStats ¶
func (*MuxServer) GetFiles ¶
func (m *MuxServer) GetFiles() ([]*FileDescriptor, error)
func (*MuxServer) GetLocationStats ¶
func (*MuxServer) GetTopEndpoints ¶
func (*MuxServer) GetTopLocations ¶
func (*MuxServer) GetUpstreamStats ¶
func (*MuxServer) TakeFiles ¶
func (m *MuxServer) TakeFiles(files []*FileDescriptor) error
func (*MuxServer) UpdateHostKeyPair ¶
func (*MuxServer) UpdateLocationOptions ¶
func (*MuxServer) UpdateLocationPath ¶
func (*MuxServer) UpdateLocationUpstream ¶
func (*MuxServer) UpsertEndpoint ¶
func (*MuxServer) UpsertLocation ¶
func (*MuxServer) UpsertLocationMiddleware ¶
type NewServerFn ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter reports real time metrics to the Statsd client
func (*Reporter) ObserveRequest ¶
type Server ¶
type Server interface { backend.StatsProvider UpsertHost(host *backend.Host) error DeleteHost(hostname string) error UpdateHostKeyPair(hostname string, keyPair *backend.KeyPair) error AddHostListener(host *backend.Host, l *backend.Listener) error DeleteHostListener(host *backend.Host, listenerId string) error UpsertLocation(host *backend.Host, loc *backend.Location) error DeleteLocation(host *backend.Host, locationId string) error UpsertUpstream(u *backend.Upstream) error DeleteUpstream(upstreamId string) error UpdateLocationUpstream(host *backend.Host, loc *backend.Location) error UpdateLocationPath(host *backend.Host, loc *backend.Location, path string) error UpdateLocationOptions(host *backend.Host, loc *backend.Location) error UpsertLocationMiddleware(host *backend.Host, loc *backend.Location, mi *backend.MiddlewareInstance) error DeleteLocationMiddleware(host *backend.Host, loc *backend.Location, mType, mId string) error UpsertEndpoint(upstream *backend.Upstream, e *backend.Endpoint) error DeleteEndpoint(upstream *backend.Upstream, endpointId string) error // TakeFiles takes file descriptors representing sockets in listening state to start serving on them // instead of binding. This is nessesary if the child process needs to inherit sockets from the parent // (e.g. for graceful restarts) TakeFiles([]*FileDescriptor) error // GetFiles exports listening socket's underlying dupped file descriptors, so they can later // be passed to child process or to another Server GetFiles() ([]*FileDescriptor, error) Start() error Stop(wait bool) }
Click to show internal directories.
Click to hide internal directories.