helpers

package
v0.0.0-...-a4c968e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientError

func ClientError(w http.ResponseWriter, status int)

ClientError logs a client error and responds with the specified status.

func IsAuthenticated

func IsAuthenticated(r *http.Request) bool

func NewHelpers

func NewHelpers(a *config.AppConfig)

NewHelpers sets up the app config for helpers.

func ServerError

func ServerError(w http.ResponseWriter, err error)

ServerError logs a server error, including a stack trace, and responds with a 500 status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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