Documentation ¶
Overview ¶
Package server is for setting up the server.
Index ¶
- func NewGQLResponseMiddleware() graphql.ResponseMiddleware
- func Serve(config *viper.Viper)
- type OktaClientConfig
- type Server
- func (s Server) CheckEmailClient(client email.Client)
- func (s Server) NewCEDARClientCheck()
- func (s Server) NewDBConfig() storage.DBConfig
- func (s Server) NewEmailConfig() email.Config
- func (s Server) NewFlagConfig() flags.Config
- func (s Server) NewLocalAuthIsEnabled() bool
- func (s Server) NewOktaAPIClientCheck()
- func (s Server) NewOktaClientConfig() OktaClientConfig
- func (s Server) NewS3Config() upload.Config
- func (s Server) NewSESConfig() appses.Config
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGQLResponseMiddleware ¶
func NewGQLResponseMiddleware() graphql.ResponseMiddleware
NewGQLResponseMiddleware returns a handler with a request based logger
Types ¶
type OktaClientConfig ¶
OktaClientConfig is the okta client configuration
type Server ¶
Server holds dependencies for running the EASi server
func (Server) CheckEmailClient ¶
CheckEmailClient sends a email to test it is configured properly this method will panic on failures
func (Server) NewCEDARClientCheck ¶
func (s Server) NewCEDARClientCheck()
NewCEDARClientCheck checks if CEDAR clients are not connectable
func (Server) NewDBConfig ¶
NewDBConfig returns a new DBConfig and check required fields
func (Server) NewEmailConfig ¶
NewEmailConfig returns a new email.Config and checks required fields
func (Server) NewFlagConfig ¶
NewFlagConfig checks if Launch Darkly config exists
func (Server) NewLocalAuthIsEnabled ¶
NewLocalAuthIsEnabled returns if local auth is enabled
func (Server) NewOktaAPIClientCheck ¶
func (s Server) NewOktaAPIClientCheck()
NewOktaAPIClientCheck checks if the Okta API client is configured
func (Server) NewOktaClientConfig ¶
func (s Server) NewOktaClientConfig() OktaClientConfig
NewOktaClientConfig returns the okta client config
func (Server) NewS3Config ¶
NewS3Config returns a new s3.Config and checks required fields
func (Server) NewSESConfig ¶
NewSESConfig returns a new email.Config and checks required fields