transport

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeStatusRequest

type ChangeStatusRequest struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

ChangeStatusRequest holds the request parameters for the ChangeStatus method.

type ChangeStatusResponse

type ChangeStatusResponse struct {
	Err error `json:"error,omitempty"`
}

ChangeStatusResponse holds the response values for the ChangeStatus method.

type CreateRequest

type CreateRequest struct {
	Order order.Order
}

CreateRequest holds the request parameters for the Create method.

type CreateResponse

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

CreateResponse holds the response values for the Create method.

type Endpoints

type Endpoints struct {
	Create       endpoint.Endpoint
	GetByID      endpoint.Endpoint
	ChangeStatus endpoint.Endpoint
}

Endpoints holds all Go kit endpoints for the Order service.

func MakeEndpoints

func MakeEndpoints(s order.Service) Endpoints

MakeEndpoints initializes all Go kit endpoints for the Order service.

type GetByIDRequest

type GetByIDRequest struct {
	ID string
}

GetByIDRequest holds the request parameters for the GetByID method.

type GetByIDResponse

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

GetByIDResponse holds the response values for the GetByID method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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