handlers

package
v0.0.0-...-b7c93c8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(err error)

func HandleError

func HandleError(w http.ResponseWriter, err error)

func Info

func Info(format string, args ...interface{})

func Warning

func Warning(format string, args ...interface{})

Types

type Error

type Error interface {
	error
	Status() int
}

type StatusError

type StatusError struct {
	Code int
	Err  error
	Msg  string
}

func (StatusError) Error

func (se StatusError) Error() string

func (StatusError) Message

func (se StatusError) Message() string

func (StatusError) Status

func (se StatusError) Status() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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