api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog added in v0.0.3

func AccessLog(l *log.Logger) box.I

func Build

func Build(s service.Servicer, staticsDir, version string) *box.B

func Compression added in v0.0.7

func Compression(next box.H) box.H

func InterceptorUnavailable added in v0.0.3

func InterceptorUnavailable(db *database.Database) box.I

func PrettyErrorInterceptor added in v0.0.3

func PrettyErrorInterceptor(next box.H) box.H

func RecoverFromPanic added in v0.0.3

func RecoverFromPanic(next box.H) box.H

Types

type PrettyError added in v0.0.3

type PrettyError struct {
	Message     string `json:"message"`
	Description string `json:"description"`
}

func (PrettyError) MarshalJSON added in v0.0.3

func (p PrettyError) MarshalJSON() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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