endpoint

package
v0.0.0-...-09b6e72 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Overview

THIS FILE IS AUTO GENERATED BY GK-CLI DO NOT EDIT!!

Index

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

type CreateAttendeeRequest struct {
	Details model.Attendee `json:"details"`
}

CreateAttendeeRequest collects the request parameters for the CreateAttendee method.

type CreateAttendeeResponse

type CreateAttendeeResponse struct {
	Rs  string `json:"rs"`
	Err error  `json:"err"`
}

CreateAttendeeResponse collects the response parameters for the CreateAttendee method.

func (CreateAttendeeResponse) Failed

func (r CreateAttendeeResponse) Failed() error

Failed implements Failer.

type DeleteAllAttendeeRequest

type DeleteAllAttendeeRequest struct {
	Query model.Query `json:"query"`
}

DeleteAllAttendeeRequest collects the request parameters for the DeleteAllAttendee method.

type DeleteAllAttendeeResponse

type DeleteAllAttendeeResponse struct {
	Rs  string `json:"rs"`
	Err error  `json:"err"`
}

DeleteAllAttendeeResponse collects the response parameters for the DeleteAllAttendee method.

func (DeleteAllAttendeeResponse) Failed

func (r DeleteAllAttendeeResponse) Failed() error

Failed implements Failer.

type DeleteAttendeeRequest

type DeleteAttendeeRequest struct {
	Query model.Query `json:"query"`
}

DeleteAttendeeRequest collects the request parameters for the DeleteAttendee method.

type DeleteAttendeeResponse

type DeleteAttendeeResponse struct {
	Rs  string `json:"rs"`
	Err error  `json:"err"`
}

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

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

func (e Endpoints) DeleteAllAttendee(ctx context.Context, query model.Query) (rs string, err error)

DeleteAllAttendee implements Service. Primarily useful in a client.

func (Endpoints) DeleteAttendee

func (e Endpoints) DeleteAttendee(ctx context.Context, query model.Query) (rs string, err error)

DeleteAttendee implements Service. Primarily useful in a client.

func (Endpoints) ReadAttendee

func (e Endpoints) ReadAttendee(ctx context.Context, query model.Query) (rs []model.Attendee, err error)

ReadAttendee implements Service. Primarily useful in a client.

func (Endpoints) RmAttendee

func (e Endpoints) RmAttendee(ctx context.Context, query model.Query) (rs string, err error)

RmAttendee 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

type ReadAttendeeRequest struct {
	Query model.Query `json:"query"`
}

ReadAttendeeRequest collects the request parameters for the ReadAttendee method.

type ReadAttendeeResponse

type ReadAttendeeResponse struct {
	Rs  []model.Attendee `json:"rs"`
	Err error            `json:"err"`
}

ReadAttendeeResponse collects the response parameters for the ReadAttendee method.

func (ReadAttendeeResponse) Failed

func (r ReadAttendeeResponse) Failed() error

Failed implements Failer.

type RmAttendeeRequest

type RmAttendeeRequest struct {
	Query model.Query `json:"query"`
}

RmAttendeeRequest collects the request parameters for the RmAttendee method.

type RmAttendeeResponse

type RmAttendeeResponse struct {
	Rs  string `json:"rs"`
	Err error  `json:"err"`
}

RmAttendeeResponse collects the response parameters for the RmAttendee method.

func (RmAttendeeResponse) Failed

func (r RmAttendeeResponse) Failed() error

Failed implements Failer.

Jump to

Keyboard shortcuts

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