Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a Weaveworks server with support for reloading.
func New ¶
func New(r prometheus.Registerer, l log.Logger) *Server
New creates a new Server. ApplyConfig must be called after creating a server.
func (*Server) ApplyConfig ¶
ApplyConfig applies changes to the Server block. wire will be called when the server is recreated, and should be used to hook up endpoints.
If the SignalHandler is not set, it will default to not watching for signals. This contrasts the upstream default of watching for termination signals.
ApplyConfig will override the registerer of the Config to the registerer passed to New.
Click to show internal directories.
Click to hide internal directories.