Documentation ¶
Index ¶
- type Endpoints
- type EventCreateRequest
- type EventCreateResponse
- type EventDeleteRequest
- type EventDeleteResponse
- type EventGetRequest
- type EventGetResponse
- type EventListRequest
- type EventListResponse
- type EventUpdateRequest
- type EventUpdateResponse
- type GenerateQRRequest
- type GenerateQRResponse
- type LoginRequest
- type LoginResponse
- type UnlockDeviceRequest
- type UnlockDeviceResponse
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 ¶
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 ¶
EventGetResponse holds the response values for the EventGet method.
type EventListRequest ¶
type EventListRequest struct {
TenantID uuid.UUID `json:"tenant_id"`
}
EventListRequest holds the request parameters for the EventList method.
type EventListResponse ¶
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 ¶
GenerateQRResponse holds the response values for the GenerateQR method.
func (GenerateQRResponse) Failed ¶
func (r GenerateQRResponse) Failed() error
Failed implements Failer.
type LoginRequest ¶
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.
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 ¶
UnlockDeviceResponse holds the response values for the UnlockDevice method.
func (UnlockDeviceResponse) Failed ¶
func (r UnlockDeviceResponse) Failed() error
Failed implements Failer.