Documentation ¶ Index ¶ type API func New(ctx context.Context, r chi.Router, facade, forwardingEndpoint string, ...) (API, error) type PayloadStorer type SchneiderPayload 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"` } Source Files ¶ View all Source files api.go schneider.go Click to show internal directories. Click to hide internal directories.