web

package
v0.0.0-...-9831a62 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(jwtService jwtService, log errorLogger) func(http.Handler) http.Handler

func Log

func Log(logger logger) func(http.Handler) http.Handler

Log returns http logging middleware.

func NewHandler

func NewHandler(
	cfg *Config,
	log logger,
	itemsService itemsService,
	tagsService tagsService,
	subscriptionsService subscriptionsService,
	usersService usersService,
	jwtService jwtService,
) http.Handler

nolint: funlen

Types

type Config

type Config struct {
	FS        bool `yaml:"fs"`
	GZIPLevel int  `yaml:"gzip_level"`
}

Config contains web configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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