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
}
Service is the main struct
func (*Service) HealthHandler ¶
HealthHandler handles /health endpoint
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.
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.