constants

package
v0.0.0-...-756a3e5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPerPage uint64 = 100
	MaximumPerPage uint64 = 250
)
View Source
const (
	ContextKeyUser      = "user"
	ContextKeyRequestId = "rid"
	ContextKeyLogger    = "logger"
	ContextKeyProject   = "project"
	ContextKeyOrg       = "org"
	ContextKeyPayload   = "payload"
)
View Source
const (
	HeaderXApiKey    = "X-Api-Key"
	HeaderXUserEmail = "X-User-Email"
	HeaderXRequestID = "X-Request-Id"
)

Variables

View Source
var (
	ErrNotFound     error = errors.New("not found")
	ErrDuplicated   error = errors.New("duplicated")
	ErrUnauthorized error = errors.New("unauthorized")
	ErrForbidden    error = errors.New("forbidden")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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