internal

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnauthorized refers to the http response code unauthorized, which really means not authenticated, despite its name. See https://stackoverflow.com/a/6937030/155585
	ErrUnauthorized = fmt.Errorf("unauthorized")
	// ErrForbidden means you don't have permissions to the requested resource
	ErrForbidden = fmt.Errorf("forbidden")

	ErrDuplicate      = fmt.Errorf("duplicate record")
	ErrNotFound       = fmt.Errorf("record not found")
	ErrBadRequest     = fmt.Errorf("bad request")
	ErrNotImplemented = fmt.Errorf("not implemented")
)

These should probably closely match the HTTP status codes (though not a requirement), as they're base types that will be used to determine the correct HTTP response code.

View Source
var (
	Branch  = "main"
	Version = "0.0.0-development"
	Commit  = ""
	Date    = ""
)
View Source
var CrashReportingDSN = ""
View Source
var TelemetryWriteKey = ""

Functions

This section is empty.

Types

type HttpContextKeyDestination added in v0.4.11

type HttpContextKeyDestination struct{}

type HttpContextKeyDestinationName added in v0.4.11

type HttpContextKeyDestinationName struct{}

type HttpContextKeyEmail added in v0.4.11

type HttpContextKeyEmail struct{}

type HttpContextKeyGroups added in v0.5.0

type HttpContextKeyGroups struct{}

type HttpContextKeyMachine added in v0.5.8

type HttpContextKeyMachine struct{}

Directories

Path Synopsis
Package logging provides a shared logger and log utilities to be used in all internal packages.
Package logging provides a shared logger and log utilities to be used in all internal packages.
tools
querylinter Module

Jump to

Keyboard shortcuts

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