Documentation ¶
Overview ¶
THIS FILE IS AUTO GENERATED BY GK-CLI DO NOT EDIT!!
Index ¶
- func MakeCreateAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
- func MakeDeleteAllAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
- func MakeDeleteAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
- func MakeReadAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
- func MakeRmAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
- type CreateAttendeeRequest
- type CreateAttendeeResponse
- type DeleteAllAttendeeRequest
- type DeleteAllAttendeeResponse
- type DeleteAttendeeRequest
- type DeleteAttendeeResponse
- type Endpoints
- func (e Endpoints) CreateAttendee(ctx context.Context, details model.Attendee) (rs string, err error)
- func (e Endpoints) DeleteAllAttendee(ctx context.Context, query model.Query) (rs string, err error)
- func (e Endpoints) DeleteAttendee(ctx context.Context, query model.Query) (rs string, err error)
- func (e Endpoints) ReadAttendee(ctx context.Context, query model.Query) (rs []model.Attendee, err error)
- func (e Endpoints) RmAttendee(ctx context.Context, query model.Query) (rs string, err error)
- type Failure
- type ReadAttendeeRequest
- type ReadAttendeeResponse
- type RmAttendeeRequest
- type RmAttendeeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCreateAttendeeEndpoint ¶
func MakeCreateAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
MakeCreateAttendeeEndpoint returns an endpoint that invokes CreateAttendee on the service.
func MakeDeleteAllAttendeeEndpoint ¶
func MakeDeleteAllAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
MakeDeleteAllAttendeeEndpoint returns an endpoint that invokes DeleteAllAttendee on the service.
func MakeDeleteAttendeeEndpoint ¶
func MakeDeleteAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
MakeDeleteAttendeeEndpoint returns an endpoint that invokes DeleteAttendee on the service.
func MakeReadAttendeeEndpoint ¶
func MakeReadAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
MakeReadAttendeeEndpoint returns an endpoint that invokes ReadAttendee on the service.
func MakeRmAttendeeEndpoint ¶
func MakeRmAttendeeEndpoint(s service.ParticipantsService) endpoint.Endpoint
MakeRmAttendeeEndpoint returns an endpoint that invokes RmAttendee on the service.
Types ¶
type CreateAttendeeRequest ¶
CreateAttendeeRequest collects the request parameters for the CreateAttendee method.
type CreateAttendeeResponse ¶
CreateAttendeeResponse collects the response parameters for the CreateAttendee method.
func (CreateAttendeeResponse) Failed ¶
func (r CreateAttendeeResponse) Failed() error
Failed implements Failer.
type DeleteAllAttendeeRequest ¶
DeleteAllAttendeeRequest collects the request parameters for the DeleteAllAttendee method.
type DeleteAllAttendeeResponse ¶
DeleteAllAttendeeResponse collects the response parameters for the DeleteAllAttendee method.
func (DeleteAllAttendeeResponse) Failed ¶
func (r DeleteAllAttendeeResponse) Failed() error
Failed implements Failer.
type DeleteAttendeeRequest ¶
DeleteAttendeeRequest collects the request parameters for the DeleteAttendee method.
type DeleteAttendeeResponse ¶
DeleteAttendeeResponse collects the response parameters for the DeleteAttendee method.
func (DeleteAttendeeResponse) Failed ¶
func (r DeleteAttendeeResponse) Failed() error
Failed implements Failer.
type Endpoints ¶
type Endpoints struct { CreateAttendeeEndpoint endpoint.Endpoint ReadAttendeeEndpoint endpoint.Endpoint RmAttendeeEndpoint endpoint.Endpoint DeleteAttendeeEndpoint endpoint.Endpoint DeleteAllAttendeeEndpoint endpoint.Endpoint }
Endpoints collects all of the endpoints that compose a profile service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.
func New ¶
func New(s service.ParticipantsService, mdw map[string][]endpoint.Middleware) Endpoints
New returns a Endpoints struct that wraps the provided service, and wires in all of the expected endpoint middlewares
func (Endpoints) CreateAttendee ¶
func (e Endpoints) CreateAttendee(ctx context.Context, details model.Attendee) (rs string, err error)
CreateAttendee implements Service. Primarily useful in a client.
func (Endpoints) DeleteAllAttendee ¶
DeleteAllAttendee implements Service. Primarily useful in a client.
func (Endpoints) DeleteAttendee ¶
DeleteAttendee implements Service. Primarily useful in a client.
type Failure ¶
type Failure interface {
Failed() error
}
Failer is an interface that should be implemented by response types. Response encoders can check if responses are Failer, and if so they've failed, and if so encode them using a separate write path based on the error.
type ReadAttendeeRequest ¶
ReadAttendeeRequest collects the request parameters for the ReadAttendee method.
type ReadAttendeeResponse ¶
ReadAttendeeResponse collects the response parameters for the ReadAttendee method.
func (ReadAttendeeResponse) Failed ¶
func (r ReadAttendeeResponse) Failed() error
Failed implements Failer.
type RmAttendeeRequest ¶
RmAttendeeRequest collects the request parameters for the RmAttendee method.
type RmAttendeeResponse ¶
RmAttendeeResponse collects the response parameters for the RmAttendee method.
func (RmAttendeeResponse) Failed ¶
func (r RmAttendeeResponse) Failed() error
Failed implements Failer.