handlers

package
v0.0.0-...-40b4526 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateMux

func PrivateMux(cfg Config) http.Handler

PrivateMux constructs a new http.Handler and registers all private routes. Every new version of private routes should be registered here.

func PublicMux

func PublicMux(cfg Config) http.Handler

PublicMux constructs a new http.Handler and registers all public routes. Every new version of public routes should be registered here.

Types

type Config

type Config struct {
	Log         *zap.SugaredLogger
	State       *state.State
	NameService *nameservice.NameService
}

Config collects all dependencies required by either public or private handlers.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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