handlers

package
v0.0.0-...-29f2d0a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiSharedAuthorization = "/shared/authorization"

Functions

func ExternalIdExists

func ExternalIdExists(m *microservice.Microservice, tenant string, externalID string) bool

func GetDeviceHMAC

func GetDeviceHMAC(secret string, keys ...string) []byte

func GetSharedCredentials

func GetSharedCredentials(c echo.Context) error

func GetToken

func GetToken(c echo.Context) error

GetDeviceByNameHandler returns a managed object by its name

func RegisterDevice

func RegisterDevice(c echo.Context) error

func RegisterEnrolmentHandlers

func RegisterEnrolmentHandlers(e *echo.Echo)

RegisterHandlers registers the http handlers to the given echo server

func RegisterSharedAuthHandlers

func RegisterSharedAuthHandlers(e *echo.Echo)

Types

type ErrorMessage

type ErrorMessage struct {
	Err    string `json:"error"`
	Reason string `json:"reason"`
}

func (*ErrorMessage) Error

func (e *ErrorMessage) Error() string

Jump to

Keyboard shortcuts

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