Documentation ¶
Index ¶
- Constants
- func AddCryptumRequestHeader(request *http.Request)
- func GetHttpClient() (client http.Client)
- func LoadEnv()
- type APIRequestError
- type APIRequestErrorData
- func NewAPIGetError(err error) (restError APIRequestErrorData)
- func NewAPIGetErrorEmpty() (restError APIRequestErrorData)
- func NewAPIGetPartnerError(err error, partner string) (restError APIRequestErrorData)
- func NewAPIPostError(err error) (restError APIRequestErrorData)
- func NewAPIPostMarshellingError(err error) (restError APIRequestErrorData)
Constants ¶
View Source
const APIENDPOINT = "https://api-hml.cryptum.io"
Variables ¶
This section is empty.
Functions ¶
func AddCryptumRequestHeader ¶
func GetHttpClient ¶
Types ¶
type APIRequestError ¶
type APIRequestError interface { Error() LogError() LogErrorWithData() }
type APIRequestErrorData ¶
func NewAPIGetError ¶
func NewAPIGetError(err error) (restError APIRequestErrorData)
func NewAPIGetErrorEmpty ¶
func NewAPIGetErrorEmpty() (restError APIRequestErrorData)
func NewAPIGetPartnerError ¶
func NewAPIGetPartnerError(err error, partner string) (restError APIRequestErrorData)
func NewAPIPostError ¶
func NewAPIPostError(err error) (restError APIRequestErrorData)
func NewAPIPostMarshellingError ¶
func NewAPIPostMarshellingError(err error) (restError APIRequestErrorData)
func (*APIRequestErrorData) Error ¶
func (re *APIRequestErrorData) Error() string
func (*APIRequestErrorData) LogError ¶
func (re *APIRequestErrorData) LogError()
func (*APIRequestErrorData) LogErrorWithAditionalMsg ¶
func (re *APIRequestErrorData) LogErrorWithAditionalMsg(aditionalMsg string)
func (*APIRequestErrorData) LogErrorWithData ¶
func (re *APIRequestErrorData) LogErrorWithData(data any)
func (*APIRequestErrorData) SetError ¶
func (re *APIRequestErrorData) SetError(err error)
Click to show internal directories.
Click to hide internal directories.