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 Endpoints

type Endpoints struct {
	Login        endpoint.Endpoint
	EventCreate  endpoint.Endpoint
	EventGet     endpoint.Endpoint
	EventUpdate  endpoint.Endpoint
	EventDelete  endpoint.Endpoint
	EventList    endpoint.Endpoint
	UnlockDevice endpoint.Endpoint
	GenerateQR   endpoint.Endpoint
}

Endpoints holds all Go kit endpoints for the service.

func MakeEndpoints

func MakeEndpoints(s frontend.Service) Endpoints

MakeEndpoints initializes all Go kit endpoints for the service.

type EventCreateRequest

type EventCreateRequest struct {
	TenantID uuid.UUID      `json:"tenant_id"`
	Event    frontend.Event `json:"event"`
}

EventCreateRequest holds the request parameters for the EventCreate method.

type EventCreateResponse

type EventCreateResponse struct {
	EventID *uuid.UUID `json:"event_id,omitempty"`
	Err     error
}

EventCreateResponse holds the response values for the EventCreate method.

func (EventCreateResponse) Failed

func (r EventCreateResponse) Failed() error

Failed implements Failer.

type EventDeleteRequest

type EventDeleteRequest struct {
	TenantID uuid.UUID `json:"tenant_id"`
	EventID  uuid.UUID `json:"event_id"`
}

EventDeleteRequest holds the request parameters for the EventDelete method.

type EventDeleteResponse

type EventDeleteResponse struct {
	Err error
}

EventDeleteResponse holds the response values for the EventDelete method.

func (EventDeleteResponse) Failed

func (r EventDeleteResponse) Failed() error

Failed implements Failer.

type EventGetRequest

type EventGetRequest struct {
	TenantID uuid.UUID `json:"tenant_id"`
	EventID  uuid.UUID `json:"event_id"`
}

EventGetRequest holds the request parameters for the EventGet method.

type EventGetResponse

type EventGetResponse struct {
	Event *frontend.Event `json:"event,omitempty"`
	Err   error
}

EventGetResponse holds the response values for the EventGet method.

func (EventGetResponse) Failed

func (r EventGetResponse) Failed() error

Failed implements Failer.

type EventListRequest

type EventListRequest struct {
	TenantID uuid.UUID `json:"tenant_id"`
}

EventListRequest holds the request parameters for the EventList method.

type EventListResponse

type EventListResponse struct {
	Events []*frontend.Event `json:"events,omitempty"`
	Err    error
}

EventListResponse holds the response values for the EventList method.

func (EventListResponse) Failed

func (r EventListResponse) Failed() error

Failed implements Failer.

type EventUpdateRequest

type EventUpdateRequest struct {
	TenantID uuid.UUID      `json:"tenant_id"`
	Event    frontend.Event `json:"event"`
}

EventUpdateRequest holds the request parameters for the EventUpdate method.

type EventUpdateResponse

type EventUpdateResponse struct {
	Err error
}

EventUpdateResponse holds the response values for the EventUpdate method.

func (EventUpdateResponse) Failed

func (r EventUpdateResponse) Failed() error

Failed implements Failer.

type GenerateQRRequest

type GenerateQRRequest struct {
	EventID    uuid.UUID
	DeviceID   uuid.UUID
	UnlockCode string
}

GenerateQRRequest holds the request parameters for the GenerateQR method.

type GenerateQRResponse

type GenerateQRResponse struct {
	QR  []byte
	Err error
}

GenerateQRResponse holds the response values for the GenerateQR method.

func (GenerateQRResponse) Failed

func (r GenerateQRResponse) Failed() error

Failed implements Failer.

type LoginRequest

type LoginRequest struct {
	User string `json:"user"`
	Pass string `json:"pass"`
}

LoginRequest holds the request parameters for the Login method.

type LoginResponse

type LoginResponse struct {
	ID         uuid.UUID `json:"id"`
	Name       string    `json:"name"`
	TenantID   uuid.UUID `json:"tenant_id"`
	TenantName string    `json:"tenant_name"`
	Err        error
}

LoginResponse holds the response values for the Login method.

func (LoginResponse) Failed

func (r LoginResponse) Failed() error

Failed implements Failer.

type UnlockDeviceRequest

type UnlockDeviceRequest struct {
	EventID    uuid.UUID `json:"event_id"`
	DeviceID   uuid.UUID `json:"device_id"`
	UnlockCode string    `json:"unlock_code"`
}

UnlockDeviceRequest holds the request parameters for the UnlockDevice method.

type UnlockDeviceResponse

type UnlockDeviceResponse struct {
	Session *frontend.Session `json:"session,omitempty"`
	Err     error
}

UnlockDeviceResponse holds the response values for the UnlockDevice method.

func (UnlockDeviceResponse) Failed

func (r UnlockDeviceResponse) Failed() error

Failed implements Failer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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