Documentation ¶
Index ¶
- type AccountsListRequest
- type AccountsListResponse
- type AllPaymentsListRequest
- type AllPaymentsListResponse
- type CreateAccountRequest
- type CreateAccountResponse
- type DepositRequest
- type DepositResponse
- type Endpoints
- type PaymentsListRequest
- type PaymentsListResponse
- type TransferRequest
- type TransferResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsListRequest ¶
AccountsListRequest - holds the request params for the AccountsList method
type AccountsListResponse ¶
type AccountsListResponse struct { List interface{} `json:"list"` Err error `json:"error,omitempty"` }
AccountsListResponse - holds the response values for the AccountsList method
func (AccountsListResponse) Error ¶
func (r AccountsListResponse) Error() error
type AllPaymentsListRequest ¶
AllPaymentsListRequest - holds the request params for the AllPaymentsList method
type AllPaymentsListResponse ¶
type AllPaymentsListResponse struct { List interface{} `json:"list"` Err error `json:"error,omitempty"` }
AllPaymentsListResponse PaymentsListResponse - holds the response values for the AllPaymentsList method
func (AllPaymentsListResponse) Error ¶
func (r AllPaymentsListResponse) Error() error
type CreateAccountRequest ¶
type CreateAccountRequest struct {
Name entity.AccountName
}
CreateAccountRequest - holds the request params for the CreateAccount method
type CreateAccountResponse ¶
type CreateAccountResponse struct { ID entity.AccountName `json:"account_id,omitempty"` Err error `json:"error,omitempty"` }
CreateAccountResponse - holds the response values for the CreateAccount method
func (CreateAccountResponse) Error ¶
func (r CreateAccountResponse) Error() error
type DepositRequest ¶
type DepositRequest struct { Name entity.AccountName Amount float64 }
DepositRequest - holds the request params for the Deposit method
type DepositResponse ¶
type DepositResponse struct { Balance float64 `json:"balance,omitempty"` Err error `json:"error,omitempty"` }
DepositResponse - holds the response values for the Deposit method
func (DepositResponse) Error ¶
func (r DepositResponse) Error() error
type Endpoints ¶
type Endpoints struct { CreateAccount endpoint.Endpoint Deposit endpoint.Endpoint Transfer endpoint.Endpoint PaymentsList endpoint.Endpoint AllPaymentsList endpoint.Endpoint AccountsList endpoint.Endpoint }
func MakeEndpoints ¶
Endpoints holds all Go kit endpoints for the wallet service.
type PaymentsListRequest ¶
type PaymentsListRequest struct { Name entity.AccountName Offset int64 Limit int64 }
PaymentsListRequest - holds the request params for the PaymentsList method
type PaymentsListResponse ¶
type PaymentsListResponse struct { List interface{} `json:"list"` Err error `json:"error,omitempty"` }
PaymentsListResponse - holds the response values for the PaymentsList method
func (PaymentsListResponse) Error ¶
func (r PaymentsListResponse) Error() error
type TransferRequest ¶
type TransferRequest struct { From entity.AccountName To entity.AccountName Amount float64 }
TransferRequest - holds the request params for the Transfer method
type TransferResponse ¶
type TransferResponse struct { Payment interface{} `json:"payment,omitempty"` Err error `json:"error,omitempty"` }
TransferResponse - holds the response values for the Transfer method
func (TransferResponse) Error ¶
func (r TransferResponse) Error() error