server

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiscoveryRouter

func GetDiscoveryRouter(s *Server) chi.Router

func GetFestivalsAPIRouter

func GetFestivalsAPIRouter(s *Server) chi.Router

func GetFestivalsDatabaseRouter added in v1.6.0

func GetFestivalsDatabaseRouter(s *Server) chi.Router

func GetFestivalsFilesAPIRouter

func GetFestivalsFilesAPIRouter(s *Server) chi.Router

func GetFestivalsIdentityAPIRouter added in v1.4.2

func GetFestivalsIdentityAPIRouter(s *Server) chi.Router

func GetGatewayRouter

func GetGatewayRouter(s *Server) chi.Router

func GetWebsiteNodeRouter added in v1.2.4

func GetWebsiteNodeRouter(s *Server) chi.Router

Types

type RequestHandlerFunction

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

function prototype to inject config instance in handleRequest()

type Server

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

Server has router and tls configuration

func NewServer added in v1.7.1

func NewServer(config *config.Config) *Server

func (*Server) Initialize

func (s *Server) Initialize(config *config.Config)

Initialize the server with predefined configuration

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