v1alpha1

package
v0.0.0-...-d5421df Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "/v1alpha1"

Variables

View Source
var (
	ErrDeviceNotRegistered      = errors.New("device not found in account and there was no share code")
	ErrAccountShareCodeMismatch = errors.New("the provided share code did not belong to the provided account")
)

Functions

func New

func New(ctx context.Context, engine *echo.Echo)

Types

type API

func (*API) IsHealthy

func (api *API) IsHealthy(ctx echo.Context) error

func (*API) IsReady

func (api *API) IsReady(ctx echo.Context) error

func (*API) Register

func (api *API) Register(ctx echo.Context) error

type OpenAPIHandler

type OpenAPIHandler struct {
	OpenAPI *openapi3.T
	*zerolog.Logger
	// contains filtered or unexported fields
}

func NewOpenAPIHandler

func NewOpenAPIHandler(ctx context.Context, openAPI *openapi3.T) *OpenAPIHandler

func (*OpenAPIHandler) ServeOpenAPI

func (h *OpenAPIHandler) ServeOpenAPI(ctx echo.Context) error

Directories

Path Synopsis
Package REST provides primitives to interact with the openapi HTTP API.
Package REST 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