Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Healthy bool
// contains filtered or unexported fields
}
Service is the main struct
func NewService ¶
func NewService() *Service
func (*Service) HealthHandler ¶
HealthHandler handles /healthz endpoint
func (*Service) RegisterShutdown ¶
func (svc *Service) RegisterShutdown()
func (*Service) RootHandler ¶
RootHandler handles / endpoint
func (*Service) Run ¶
func (svc *Service) Run(config *ServiceConfig) error
Run is the main function of the server. It bootstraps the service and creates the route endpoints.
func (*Service) UpdateHandler ¶
UpdateHandler handles /update/:name endpoint
type ServiceConfig ¶
type ServiceConfig struct {
Config *conf.Config
OAuth2Endpoints oauth2.Endpoint
CertKeyPair tls.Certificate
Httponly bool
}
ServiceConfig contains everything configurable for the service endpoint.
Click to show internal directories.
Click to hide internal directories.