auth

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPError

func HTTPError(err error) error

HTTPError converts an auth.Err to an appropriate httpresponse error, preserving the reason message.

Types

type Err

type Err int

Err represents a typed application error.

const (
	ErrSuccess Err = iota
	ErrNotFound
	ErrBadParameter
	ErrNotImplemented
	ErrConflict
	ErrServiceUnavailable
	ErrInternalServerError
	ErrInvalidProvider
	ErrForbidden
)

func (Err) Error

func (e Err) Error() string

func (Err) With

func (e Err) With(args ...any) error

func (Err) Withf

func (e Err) Withf(format string, args ...any) error

Jump to

Keyboard shortcuts

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