Documentation ¶
Index ¶
- Constants
- type Handler
- func (h *Handler) CreateLineage(ctx echo.Context) error
- func (h *Handler) GetLineageByExtId(ctx echo.Context, params api.GetLineageByExtIdParams) error
- func (h *Handler) GetTicket(ctx echo.Context, lineageId string, ticketExtId string) error
- func (h *Handler) GetTickets(ctx echo.Context, lineageId string, params api.GetTicketsParams) error
- func (h *Handler) LeaseTicket(ctx echo.Context, lineageId string) error
- func (h *Handler) Start() error
- func (h *Handler) Stop(ctx context.Context) error
- func (h *Handler) UpdateTicket(ctx echo.Context, lineageId string, ticketExtId string) error
Constants ¶
View Source
const ErrTooManyConcurrentRequests = "too_many_concurrent_requests"
View Source
const ErrorCodeBadRequest = "bad_request"
View Source
const ErrorCodeNotFound = "not_found"
View Source
const ErrorCodeTooManyLeasedTickets = "too_many_leased_tickets"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateLineage ¶
func (*Handler) GetLineageByExtId ¶
func (h *Handler) GetLineageByExtId(ctx echo.Context, params api.GetLineageByExtIdParams) error
func (*Handler) GetTickets ¶
func (h *Handler) GetTickets(ctx echo.Context, lineageId string, params api.GetTicketsParams) error
func (*Handler) LeaseTicket ¶
Click to show internal directories.
Click to hide internal directories.