transport

package
v0.0.0-...-290c2ba Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrderRequest

type CreateOrderRequest struct {
	Order order.Order
}

CreateOrderRequest holds the request parameters for the CreateOrder method.

type CreateOrderResponse

type CreateOrderResponse struct {
	ID  string `json:"id"`
	Err error  `json:"error,omitempty"`
}

CreateOrderResponse holds the response values for the CreateOrder method.

func (CreateOrderResponse) Error

func (r CreateOrderResponse) Error() error

type Endpoints

type Endpoints struct {
	CreateOrder  endpoint.Endpoint
	GetOrderByID endpoint.Endpoint
}

Endpoints holds all Go kit endpoints for the Order service.

func MakeServerEndpoints

func MakeServerEndpoints(s ordersvc.Service) Endpoints

MakeServerEndpoints initializes all Go kit endpoints for the Order service.

type GetOrderByIDRequest

type GetOrderByIDRequest struct {
	ID string
}

GetOrderByIDRequest holds the request parameters for the GetOrderByID method.

type GetOrderByIDResponse

type GetOrderByIDResponse struct {
	Order order.Order `json:"order"`
	Err   error       `json:"error,omitempty"`
}

GetOrderByIDResponse holds the response values for the GetOrderByID method.

func (GetOrderByIDResponse) Error

func (r GetOrderByIDResponse) Error() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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