http

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: BSD-3-Clause Imports: 20 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL