Versions in this module Expand all Collapse all v0 v0.1.0 Sep 9, 2024 Changes in this version + var ErrConflict = errors.New("conflict") + var ErrInvalidInput = errors.New("invalid input") + var InvalidInputErrCode rout.ErrorCode = "INVALID_INPUT" + type CheckFunc func(ctx context.Context) error + type Checks struct + func (c *Checks) ReadyHandler(ctx echo.Context) error + type Handler struct + IsTest bool + Logger *zap.SugaredLogger + OpenlaneClient *openlaneclient.OpenlaneClient + ReadyChecks Checks + func (h *Handler) AddReadinessCheck(name string, f CheckFunc) + func (h *Handler) AddRequestBody(name string, body interface{}, op *openapi3.Operation) + func (h *Handler) AddResponse(name string, description string, body interface{}, op *openapi3.Operation, ...) + func (h *Handler) BadRequest(ctx echo.Context, err error) error + func (h *Handler) BadRequestWithCode(ctx echo.Context, err error, code rout.ErrorCode) error + func (h *Handler) BindOrganizationHandler() *openapi3.Operation + func (h *Handler) Conflict(ctx echo.Context, err string, code rout.ErrorCode) error + func (h *Handler) Created(ctx echo.Context, rep interface{}) error + func (h *Handler) InternalServerError(ctx echo.Context, err error) error + func (h *Handler) InvalidInput(ctx echo.Context, err error) error + func (h *Handler) NotFound(ctx echo.Context, err error) error + func (h *Handler) OrganizationHandler(ctx echo.Context) error + func (h *Handler) Success(ctx echo.Context, rep interface{}) error + func (h *Handler) TooManyRequests(ctx echo.Context, err error) error + func (h *Handler) Unauthorized(ctx echo.Context, err error) error + type StatusReply struct + Status map[string]string