handler

package
v0.0.0-...-539b324 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTMiddleware

func JWTMiddleware(hrFunc http.HandlerFunc, srv *service.Depository, authSrv *service.Auth, authCfg *service.AuthConfig) http.HandlerFunc

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, v ...interface{}) error

Types

type Handler

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

func New

func New(lAddr string, srv *service.Depository) *Handler

func (*Handler) Run

func (h *Handler) Run()

type HandlerErr

type HandlerErr struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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