server

package
v0.0.0-...-a0be860 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(c *configuration.Configuration, l *zap.Logger, s *scs.SessionManager)

Types

type App

type App struct {
	Session       *scs.SessionManager
	Configuration *configuration.Configuration
	Logger        *zap.Logger
	Database      *db.Database
	HelloWorld    *hello.HelloWorld
}

type Server

type Server struct {
	Router  *chi.Mux
	Session *scs.SessionManager
}

func (*Server) AddMiddleWare

func (s *Server) AddMiddleWare(app *App)

func (*Server) AddRoutes

func (s *Server) AddRoutes(app *App)

func (*Server) Authenticated

func (s *Server) Authenticated(next http.HandlerFunc) http.HandlerFunc

Authenticated secures routes.

Jump to

Keyboard shortcuts

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