server

package
v2.0.0-...-2642f33 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoStoreCacheControlMiddleware

func NoStoreCacheControlMiddleware() func(http.Handler) http.Handler

NoStoreCacheControlMiddleware middleware to add `no-store` cache control to http writer

func PapyrusAuthMiddleware

func PapyrusAuthMiddleware(service *papyrus.AuthService, lg *zap.Logger) func(http.Handler) http.Handler

Types

type Server

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

Server server struct and its dependencies

func NewServer

func NewServer(logger *zap.Logger) *Server

NewServer Creates the server with passed dependencies

func (*Server) RoutesHandler

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

RoutesHandler sets up the routes and handles them

Jump to

Keyboard shortcuts

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