app

package
v0.0.0-...-df62f9d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = time.Second * 30

DefaultTimeout is the default timeout for operations requiring REST requests: this is a high value, as the HTTP proxy may delay requests to avoid rate limits.

Variables

This section is empty.

Functions

func DefaultContext

func DefaultContext() (context.Context, context.CancelFunc)

Types

type ApiError

type ApiError struct {
	InternalError   error
	ExternalMessage string
}

func NewError

func NewError(internalError error, externalMessage string) *ApiError

func NewServerError

func NewServerError(internalError error) *ApiError

func (*ApiError) Error

func (e *ApiError) Error() string

func (*ApiError) Unwrap

func (e *ApiError) Unwrap() error

Jump to

Keyboard shortcuts

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