transport

package
v0.0.0-...-f691fa7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMoneyToWalletRequest

type AddMoneyToWalletRequest struct {
	CustomerID string
	Amount     float64
}

type AddMoneyToWalletResponse

type AddMoneyToWalletResponse struct {
	Err error
}

type CreateCustomerRequest

type CreateCustomerRequest struct {
	Customer account.Customer
}

type CreateCustomerResponse

type CreateCustomerResponse struct {
	Err error
}

type Endpoints

type Endpoints struct {
	CreateCustomer endpoint.Endpoint
}

Endpoints holds all Go kit endpoints for the Order service.

func MakeEndpoints

func MakeEndpoints(s account.Service) Endpoints

MakeEndpoints initializes all Go kit endpoints for the Account service.

type GetWalletBalanceRequest

type GetWalletBalanceRequest struct {
	CustomerID string
}

type GetWalletBalanceResponse

type GetWalletBalanceResponse struct {
	Amount float64
	Err    error
}

type MakePaymentRequest

type MakePaymentRequest struct {
	CustomerID string
	Amount     float64
}

type MakePaymentResponse

type MakePaymentResponse struct {
	Err error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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