transport

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	TenantID uuid.UUID
	Event    event.Event
}

CreateRequest holds the request parameters for the Create method.

type CreateResponse

type CreateResponse struct {
	ID  *uuid.UUID
	Err error
}

CreateResponse holds the response values for the Create method.

func (CreateResponse) Failed

func (r CreateResponse) Failed() error

Failed implements Failer

type DeleteRequest

type DeleteRequest struct {
	TenantID uuid.UUID
	ID       uuid.UUID
}

DeleteRequest holds the request parameters for the Delete method.

type DeleteResponse

type DeleteResponse struct {
	Err error
}

DeleteResponse holds the response values for the Delete method.

func (DeleteResponse) Failed

func (r DeleteResponse) Failed() error

Failed implements Failer

type Endpoints

type Endpoints struct {
	Create endpoint.Endpoint
	Get    endpoint.Endpoint
	Update endpoint.Endpoint
	Delete endpoint.Endpoint
	List   endpoint.Endpoint
}

Endpoints holds all Go kit endpoints for the service.

func MakeEndpoints

func MakeEndpoints(s event.Service) Endpoints

MakeEndpoints initializes all Go kit endpoints for the service.

type GetRequest

type GetRequest struct {
	TenantID uuid.UUID
	ID       uuid.UUID
}

GetRequest holds the request parameters for the Get method.

type GetResponse

type GetResponse struct {
	Event *event.Event
	Err   error
}

GetResponse holds the response values for the Get method.

func (GetResponse) Failed

func (r GetResponse) Failed() error

Failed implements Failer

type ListRequest

type ListRequest struct {
	TenantID uuid.UUID
}

ListRequest holds the request parameters for the List method.

type ListResponse

type ListResponse struct {
	Events []*event.Event
	Err    error
}

ListResponse holds the response values for the List method.

func (ListResponse) Failed

func (r ListResponse) Failed() error

Failed implements Failer

type UpdateRequest

type UpdateRequest struct {
	TenantID uuid.UUID
	Event    event.Event
}

UpdateRequest holds the request parameters for the Update method.

type UpdateResponse

type UpdateResponse struct {
	Err error
}

UpdateResponse holds the response values for the Update method.

func (UpdateResponse) Failed

func (r UpdateResponse) Failed() error

Failed implements Failer

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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