api

package
v0.0.0-...-e1273a2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Router() chi.Router
	// contains filtered or unexported methods
}

func New

func New(ctx context.Context, r chi.Router, facade, forwardingEndpoint string, app iotagent.App, storer PayloadStorer) (API, error)

type PayloadStorer

type PayloadStorer interface {
	Save(ctx context.Context, se application.SensorEvent) error
}

type SchneiderPayload

type SchneiderPayload struct {
	ID          string `json:"pointID"`
	Name        string `json:"name"`
	Value       string `json:"value"`
	Unit        string `json:"unit"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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