Documentation
¶
Index ¶
- Constants
- type BuildInfo
- 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 BuildInfo ¶
type BuildInfo struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
}
BuildInfo describes the binary's build metadata. The main package populates it from -ldflags-injected variables and passes it in here so /version can be served without reaching back into main.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetLineageByExtId ¶
func (*Handler) GetTickets ¶
func (*Handler) LeaseTicket ¶
Click to show internal directories.
Click to hide internal directories.