api

package
v2.0.0-...-274a74e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 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 Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(servicer ticket.Servicer) *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