Documentation ¶
Index ¶
- func MakeAddEndpoint(svc database.Service) endpoint.Endpoint
- func MakeGetEndpoint(svc database.Service) endpoint.Endpoint
- func MakeRemoveEndpoint(svc database.Service) endpoint.Endpoint
- func MakeServiceStatusEndpoint(svc database.Service) endpoint.Endpoint
- func MakeUpdateEndpoint(svc database.Service) endpoint.Endpoint
- type AddRequest
- type AddResponse
- type GetRequest
- type GetResponse
- type RemoveRequest
- type RemoveResponse
- type ServiceStatusRequest
- type ServiceStatusResponse
- type Set
- func (s *Set) Add(ctx context.Context, doc *internal.Document) (string, error)
- func (s *Set) Get(ctx context.Context, filters ...internal.Filter) ([]internal.Document, error)
- func (s *Set) Remove(ctx context.Context, ticketID string) (int, error)
- func (s *Set) ServiceStatus(ctx context.Context) (int, error)
- func (s *Set) Update(ctx context.Context, ticketID string, doc *internal.Document) (int, error)
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddRequest ¶
type AddResponse ¶
type GetRequest ¶
type GetResponse ¶
type RemoveRequest ¶
type RemoveRequest struct {
TicketID string `json:"ticketID"`
}
type RemoveResponse ¶
type ServiceStatusRequest ¶
type ServiceStatusRequest struct{}
type ServiceStatusResponse ¶
type Set ¶
type Set struct { GetEndpoint endpoint.Endpoint AddEndpoint endpoint.Endpoint UpdateEndpoint endpoint.Endpoint RemoveEndpoint endpoint.Endpoint ServiceStatusEndpoint endpoint.Endpoint }
func NewEndpointSet ¶
type UpdateRequest ¶
type UpdateResponse ¶
Click to show internal directories.
Click to hide internal directories.