apierror

package
v1.0.0-beta.40 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AdminNotAuthorizedJSON = `{ "code":"error-admin-auth-on-user-endpoint", "message":"cannot call user's endpoints with admin authorization" }`
View Source
const CannotBindBodyJSON = `{"code":"error-bind-body-invalid", "message":"cannot bind request body"}`
View Source
const MissingAuthHeaderJSON = `{ "code":"error-unauthorized-auth-header-missing", "message":"missing auth header" }`
View Source
const UserNotAuthorizedJSON = `{ "code": "error-unauthorized-xpub-not-an-admin-key", "message": "xpub provided is not an admin key" }`

Variables

This section is empty.

Functions

func ExpectedJSON

func ExpectedJSON(code string, message string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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