Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { WebhookCounter *prometheus.CounterVec ResponseCounter *prometheus.CounterVec }
func NewMetrics ¶
func NewMetrics() *Metrics
type Server ¶
type Server struct { ClientAgent *plugins.ClientAgent Plugins *plugins.ConfigAgent ConfigAgent *config.Agent TokenGenerator func() []byte Metrics *Metrics // contains filtered or unexported fields }
Server implements http.Handler. It validates incoming GitHub webhooks and then dispatches them to the appropriate plugins.
func (*Server) GracefulShutdown ¶
func (s *Server) GracefulShutdown()
Implements a graceful shutdown protool. Handles all requests sent before receiving shutdown signal.
Click to show internal directories.
Click to hide internal directories.