handlers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CumulocityCommandHandler

func CumulocityCommandHandler(c echo.Context) error

CumulocityCommandHandler is a handler to process go-c8y-cli commands received via a REST endpoint

func ImportEventsFromFile

func ImportEventsFromFile(c echo.Context, wait bool) error

ImportEventsFromFile import

func ImportEventsHandlerFactory

func ImportEventsHandlerFactory(wait bool) func(echo.Context) error

ImportEventsHandlerFactory returns a handler to import events. The user can either specify whether the results should be waited for, or executed asynchronously

func RegisterHandlers

func RegisterHandlers(e *echo.Echo)

RegisterHandlers registers the http handlers to the given echo server

Types

type CLICommand

type CLICommand struct {
	Command string `json:"command"`
}

Jump to

Keyboard shortcuts

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