Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuoteServer ¶
type QuoteServer struct { Logger logger.Logger QuoteService service.Quote UserService service.User QuizService service.EntryQuiz OIDCService service.OIDC Config config.Application // contains filtered or unexported fields }
QuoteServer provides a web UI over HTTP for the application
func (*QuoteServer) Init ¶
func (s *QuoteServer) Init() error
Init initializes the quote server, including Google OIDC provider, http ServerMux, template engine, and server routes.
func (QuoteServer) ServeHTTP ¶
func (s QuoteServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serves as the entrypoint for HTTP requests to the quote server. It applies the appropriate globalmiddleware, and then serves request responses using the http ServeMux
Source Files ¶
Click to show internal directories.
Click to hide internal directories.