server

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestHandlerFunction

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

function prototype to inject DB instance in handleRequest()

type Server

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

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