api

package
v3.0.0-...-46f45df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 NewHandler

func NewHandler(servicer ticket.Servicer, build BuildInfo) *Handler

func (*Handler) CreateLineage

func (h *Handler) CreateLineage(ctx echo.Context) error

func (*Handler) GetLineageByExtId

func (h *Handler) GetLineageByExtId(ctx echo.Context, params api.GetLineageByExtIdParams) error

func (*Handler) GetTicket

func (h *Handler) GetTicket(ctx echo.Context, lineageId string, ticketExtId string) error

func (*Handler) GetTickets

func (h *Handler) GetTickets(ctx echo.Context, lineageId string, params api.GetTicketsParams) error

func (*Handler) LeaseTicket

func (h *Handler) LeaseTicket(ctx echo.Context, lineageId string) error

func (*Handler) Start

func (h *Handler) Start() error

func (*Handler) Stop

func (h *Handler) Stop(ctx context.Context) error

func (*Handler) UpdateTicket

func (h *Handler) UpdateTicket(ctx echo.Context, lineageId string, ticketExtId string) error

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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