entities

package
v0.1.1-0...-bf813a4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: OSL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonErrorResponse

type CommonErrorResponse struct {
	ErrorCode    int    `json:"code"`
	ErrorMessage string `json:"message"`
}

CommonErrorResponse of this application

func NewAccountHasNoTrustlineErrorResponse

func NewAccountHasNoTrustlineErrorResponse() CommonErrorResponse

NewAccountHasNoTrustlineErrorResponse returns a new response reporting the destination account has no trustline of the requesting credit type

func NewCreditTypeUnsupportedErrorResponse

func NewCreditTypeUnsupportedErrorResponse() CommonErrorResponse

NewCreditTypeUnsupportedErrorResponse returns a new response reporting credit being requested is not supported

func NewExceedsDailyLimitErrorResponse

func NewExceedsDailyLimitErrorResponse() CommonErrorResponse

NewExceedsDailyLimitErrorResponse returns a new response reporting request is exceeding the daily limit

func NewInactivatedPublicKeyErrorResponse

func NewInactivatedPublicKeyErrorResponse() CommonErrorResponse

NewInactivatedPublicKeyErrorResponse returns a new response reporting error getting account resources the account might have never been activated

func NewInternalErrorResponse

func NewInternalErrorResponse() CommonErrorResponse

NewInternalErrorResponse returns a new response reporting an internal error

func NewInvalidInputErrorResponse

func NewInvalidInputErrorResponse() CommonErrorResponse

NewInvalidInputErrorResponse returns a new response reporting error invalid input

func NewInvalidPublicKeyErrorResponse

func NewInvalidPublicKeyErrorResponse() CommonErrorResponse

NewInvalidPublicKeyErrorResponse returns a new response reporting public key has invalid format

func NewMissingInputCodeErrorResponse

func NewMissingInputCodeErrorResponse() CommonErrorResponse

NewMissingInputCodeErrorResponse returns a new response reporting missing argument 'code'

func NewMissingInputIssuerErrorResponse

func NewMissingInputIssuerErrorResponse() CommonErrorResponse

NewMissingInputIssuerErrorResponse returns a new response reporting missing argument 'issuer'

func NewUnauthorizedErrorResponse

func NewUnauthorizedErrorResponse() CommonErrorResponse

NewUnauthorizedErrorResponse returns a new response reporting the account has unauthorized

type Credit

type Credit struct {
	Code   string `json:"code" binding:"required"`
	Issuer string `json:"issuer" binding:"required"`
}

Credit represents the Stellar credits

Jump to

Keyboard shortcuts

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