utils

package
v0.0.0-...-c314e41 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 7 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"}
	ErrParseMimeType        = &Error{"parsing mime type"}
	ErrRespMimeType         = &Error{"response content-type must be 'application/json'"}
	ErrCreateObject         = &Error{"create request object not possible"}
)

APIErrors

Functions

func Signature

func Signature(urlPath string, values url.Values, secret []byte) string

Signature ... See https://www.kraken.com/help/api#general-usage for more information

Types

type Error

type Error struct {
	Message string
}

Error represents a Kraken 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