utils

package
v0.0.0-...-31f8ae8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDefaultResponse      = &Error{"unknown error"}
	ErrUnauthorized         = &Error{"authentication required"}
	ErrCurrencyNotSupported = &Error{"currency does not supported"}
	ErrUserAgentInvalid     = &Error{"invalid user-agent"}
	ErrNotFound             = &Error{"not found"}
)

APIErrors

Functions

func ConvertQueryStringToInt64

func ConvertQueryStringToInt64(r *http.Request) (int64, error)

ConvertQueryStringToInt64 is a function

Types

type Error

type Error struct {
	Message string
}

Error represents a Discogs API error

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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