handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalServerError     string = "An unexpected error occurred while processing your request."
	UnauthorizedAccessError string = "Authorization failed. Please verify your credentials and try again."
)

Variables

This section is empty.

Functions

func CheckInvalidRequestParams

func CheckInvalidRequestParams(t *testing.T, err error, expectedFieldViolations []string)

func FieldViolation

func FieldViolation(field string, err error) *errdetails.BadRequest_FieldViolation

func InvalidArgumentError

func InvalidArgumentError(violations []*errdetails.BadRequest_FieldViolation) error

func NewContextWithBearerToken

func NewContextWithBearerToken() context.Context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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