Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagnosticsServer ¶
type DiagnosticsServer struct { http.Server Router *mux.Router // contains filtered or unexported fields }
func NewDiagnosticsServer ¶
func NewDiagnosticsServer(port int, l logger.Logger) *DiagnosticsServer
func (*DiagnosticsServer) Address ¶
func (s *DiagnosticsServer) Address() string
func (*DiagnosticsServer) Ready ¶
func (s *DiagnosticsServer) Ready(v bool)
func (*DiagnosticsServer) Start ¶
func (s *DiagnosticsServer) Start() error
type Pool ¶
type Pool struct { Items []Item // contains filtered or unexported fields }
Pool is used to manage Server implementationsl. Pool contains functions to gracefully take care of starting and stopping multiple servers
type Server ¶
type Server interface { // Start starts a server Start() error // Stop gracefully shutdsown a server Stop(context.Context) error // Address returns a string containing the address the server runs on Address() string }
Server is an interface for servers which are to be used as a PoolItem
Click to show internal directories.
Click to hide internal directories.