Documentation ¶
Index ¶
- type Server
- func (s *Server) Debug(addr string) error
- func (s *Server) Listen(events <-chan []config.ConfigEvent)
- func (s *Server) ProcessEvent(e config.ConfigEvent)
- func (s *Server) ProcessEvents(events []config.ConfigEvent)
- func (s *Server) Serve() error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Shutdown() error
- func (s *Server) ValidateHost(ctx context.Context, host string) error
- type ServerConfig
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
}
func NewServer ¶
func NewServer(cfg ServerConfig) *Server
func (*Server) Listen ¶
func (s *Server) Listen(events <-chan []config.ConfigEvent)
Listen listens to config events
func (*Server) ProcessEvent ¶
func (s *Server) ProcessEvent(e config.ConfigEvent)
ProcessEvent processes a single config event
func (*Server) ProcessEvents ¶
func (s *Server) ProcessEvents(events []config.ConfigEvent)
ProcessEvents processes a list of config events
Click to show internal directories.
Click to hide internal directories.