server

package
v0.0.0-...-3719db4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server holds refernces to other interfaces to be used

func New

func New(auth *session.Auth, db *data.Database, options ...ServerOption) (*Server, error)

New initializes the server

func (*Server) NewStructuredLogger

func (s *Server) NewStructuredLogger() func(next http.Handler) http.Handler

func (*Server) Routes

func (s *Server) Routes() chi.Router

Routes initializes the middlewares and routes to be used in the application

type ServerOption

type ServerOption func(*ServerOptions) error

func Debug

func Debug(b bool) ServerOption

type ServerOptions

type ServerOptions struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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