Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Namespace provides a common namespace for metrics.
Namespace = "usocksd"
)
Variables ¶
View Source
var ( // Registry provides a common registry for metrics. Registry = prometheus.NewRegistry() )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // Logger can be used to provide a custom logger. // If nil, the default logger is used. Logger *log.Logger // ShutdownTimeout is the maximum duration the server waits for // all connections to be closed before shutdown. // // Zero duration disables timeout. ShutdownTimeout time.Duration // Env is the environment where this server runs. // // The global environment is used if Env is nil. Env *well.Environment // contains filtered or unexported fields }
Server implements a metrics server.
Click to show internal directories.
Click to hide internal directories.