transport

package module
v0.0.0-...-9dc5dfd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: CC0-1.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDeletePeopleEndpoint

func MakeDeletePeopleEndpoint(s titanic.Service) endpoint.Endpoint

MakeDeletePeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakeGetAPIStatusEndpoint

func MakeGetAPIStatusEndpoint() endpoint.Endpoint

MakeGetAPIStatusEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakeGetPeopleByIDEndpoint

func MakeGetPeopleByIDEndpoint(s titanic.Service) endpoint.Endpoint

MakeGetPeopleByIDEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakeGetPeopleEndpoint

func MakeGetPeopleEndpoint(s titanic.Service) endpoint.Endpoint

MakeGetPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakePatchPeopleEndpoint

func MakePatchPeopleEndpoint(s titanic.Service) endpoint.Endpoint

MakePatchPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakePostPeopleEndpoint

func MakePostPeopleEndpoint(s titanic.Service) endpoint.Endpoint

MakePostPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.

func MakePutPeopleEndpoint

func MakePutPeopleEndpoint(s titanic.Service) endpoint.Endpoint

MakePutPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.

Types

type DeletePeopleRequest

type DeletePeopleRequest struct {
	ID uuid.UUID
}

DeletePeopleRequest request object

type DeletePeopleResponse

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

DeletePeopleResponse response object

type Endpoints

type Endpoints struct {
	PostPeopleEndpoint    endpoint.Endpoint
	GetPeopleByIDEndpoint endpoint.Endpoint
	PutPeopleEndpoint     endpoint.Endpoint
	PatchPeopleEndpoint   endpoint.Endpoint
	DeletePeopleEndpoint  endpoint.Endpoint
	GetPeopleEndpoint     endpoint.Endpoint
	GetAPIStatusEndpoint  endpoint.Endpoint
}

Endpoints collects all of the endpoints that compose a People titanic.People.

func MakeServerEndpoints

func MakeServerEndpoints(s titanic.Service) Endpoints

MakeServerEndpoints returns an Endpoints struct where each endpoint invokes the corresponding method on the provided titanic.Service. Useful in a titanic.Service server.

type GetAPIStatusRequest

type GetAPIStatusRequest struct{}

GetAPIStatusRequest request object

type GetAPIStatusResponse

type GetAPIStatusResponse struct {
	Status string `json:"status,omitempty"`
	Err    error  `json:"err,omitempty"`
}

GetAPIStatusResponse response object

type GetPeopleByIDRequest

type GetPeopleByIDRequest struct {
	ID uuid.UUID
}

GetPeopleByIDRequest request object

type GetPeopleByIDResponse

type GetPeopleByIDResponse struct {
	People titanic.People `json:"people,omitempty"`
	Err    error          `json:"err,omitempty"`
}

GetPeopleByIDResponse response object

type GetPeopleRequest

type GetPeopleRequest struct{}

GetPeopleRequest struct

type GetPeopleResponse

type GetPeopleResponse struct {
	People []titanic.People `json:"people,omitempty"`
	Err    error            `json:"err,omitempty"`
}

GetPeopleResponse response object

type PatchPeopleRequest

type PatchPeopleRequest struct {
	ID     uuid.UUID      `json:"uuid,omitempty"`
	People titanic.People `json:"people,omitempty"`
}

PatchPeopleRequest request object

type PatchPeopleResponse

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

PatchPeopleResponse response object

type PostPeopleRequest

type PostPeopleRequest struct {
	People titanic.People `json:"people,omitempty"`
}

PostPeopleRequest request object

type PostPeopleResponse

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

PostPeopleResponse response object

type PutPeopleRequest

type PutPeopleRequest struct {
	ID     uuid.UUID      `json:"uuid,omitempty"`
	People titanic.People `json:"people,omitempty"`
}

PutPeopleRequest request object

type PutPeopleResponse

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

PutPeopleResponse response object

Directories

Path Synopsis
http module

Jump to

Keyboard shortcuts

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