server

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyAuthenticatedHandlerFunction added in v1.4.0

type APIKeyAuthenticatedHandlerFunction func(conf *config.Config, w http.ResponseWriter, r *http.Request)

type JWTAuthenticatedHandlerFunction added in v1.4.0

type JWTAuthenticatedHandlerFunction func(validator *token.ValidationService, claims *token.UserClaims, conf *config.Config, w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	Router    *chi.Mux
	Config    *config.Config
	TLSConfig *tls.Config
	Validator *token.ValidationService
}

Server has router and db instances

func NewServer added in v1.2.1

func NewServer(config *config.Config) *Server

func (*Server) Run

func (s *Server) Run(conf *config.Config)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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