Documentation ¶
Index ¶
- func MakeDeletePeopleEndpoint(s titanic.Service) endpoint.Endpoint
- func MakeGetAPIStatusEndpoint() endpoint.Endpoint
- func MakeGetPeopleByIDEndpoint(s titanic.Service) endpoint.Endpoint
- func MakeGetPeopleEndpoint(s titanic.Service) endpoint.Endpoint
- func MakePatchPeopleEndpoint(s titanic.Service) endpoint.Endpoint
- func MakePostPeopleEndpoint(s titanic.Service) endpoint.Endpoint
- func MakePutPeopleEndpoint(s titanic.Service) endpoint.Endpoint
- type DeletePeopleRequest
- type DeletePeopleResponse
- type Endpoints
- type GetAPIStatusRequest
- type GetAPIStatusResponse
- type GetPeopleByIDRequest
- type GetPeopleByIDResponse
- type GetPeopleRequest
- type GetPeopleResponse
- type PatchPeopleRequest
- type PatchPeopleResponse
- type PostPeopleRequest
- type PostPeopleResponse
- type PutPeopleRequest
- type PutPeopleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDeletePeopleEndpoint ¶
MakeDeletePeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.
func MakeGetAPIStatusEndpoint ¶
MakeGetAPIStatusEndpoint returns an endpoint via the passed service. Primarily useful in a server.
func MakeGetPeopleByIDEndpoint ¶
MakeGetPeopleByIDEndpoint returns an endpoint via the passed service. Primarily useful in a server.
func MakeGetPeopleEndpoint ¶
MakeGetPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.
func MakePatchPeopleEndpoint ¶
MakePatchPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.
func MakePostPeopleEndpoint ¶
MakePostPeopleEndpoint returns an endpoint via the passed service. Primarily useful in a server.
Types ¶
type DeletePeopleRequest ¶
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 ¶
MakeServerEndpoints returns an Endpoints struct where each endpoint invokes the corresponding method on the provided titanic.Service. Useful in a titanic.Service server.
type GetAPIStatusResponse ¶
type GetAPIStatusResponse struct { Status string `json:"status,omitempty"` Err error `json:"err,omitempty"` }
GetAPIStatusResponse response object
type GetPeopleByIDRequest ¶
GetPeopleByIDRequest request object
type GetPeopleByIDResponse ¶
type GetPeopleByIDResponse struct { People titanic.People `json:"people,omitempty"` Err error `json:"err,omitempty"` }
GetPeopleByIDResponse response object
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 ¶
PostPeopleRequest request object
type PostPeopleResponse ¶
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