server

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: LGPL-3.0 Imports: 16 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.5.0

type APIKeyAuthenticatedHandlerFunction func(db *sql.DB, w http.ResponseWriter, r *http.Request)

type JWTAuthenticatedHandlerFunction added in v1.5.0

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

type Server

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

Server has router and db instances

func NewServer added in v1.3.0

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