endpoints

package
v0.0.0-...-c6d7a41 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsListRequest

type AccountsListRequest struct {
	Offset int64
	Limit  int64
}

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

type AllPaymentsListRequest struct {
	Offset int64
	Limit  int64
}

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

func MakeEndpoints(s services.Service) Endpoints

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

Jump to

Keyboard shortcuts

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