Documentation ¶
Index ¶
Constants ¶
View Source
const ( Metrics = "_metrics" PerfMon = "_perfMon" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileDescriptor ¶
func (*FileDescriptor) String ¶
func (fd *FileDescriptor) String() string
func (*FileDescriptor) ToListener ¶
func (fd *FileDescriptor) ToListener() (net.Listener, error)
type NewProxyFn ¶
type Proxy ¶
type Proxy interface { engine.StatsProvider UpsertHost(engine.Host) error DeleteHost(engine.HostKey) error UpsertListener(engine.Listener) error DeleteListener(engine.ListenerKey) error UpsertBackend(engine.Backend) error DeleteBackend(engine.BackendKey) error UpsertFrontend(engine.Frontend) error DeleteFrontend(engine.FrontendKey) error UpsertMiddleware(engine.FrontendKey, engine.Middleware) error DeleteMiddleware(engine.MiddlewareKey) error UpsertServer(engine.BackendKey, engine.Server) error DeleteServer(engine.ServerKey) 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) }
type RTWatcher ¶
type RTWatcher struct {
// contains filtered or unexported fields
}
RTWatcher watches runtime metrics
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter reports real time metrics to the Statsd client
func NewReporter ¶
Click to show internal directories.
Click to hide internal directories.