package
0.0.0-20210408101321-73fe6113136c
Repository: https://github.com/canonical/iot-devicetwin.git
Documentation: pkg.go.dev
# Functions
Logger Handle logging for the web service.
Middleware to pre-process web service requests.
NewService returns a new web controller.
# Constants
JSONHeader is the header for JSON responses.
# Structs
ActionsResponse is the JSON response to list actions for a device.
DeviceResponse is the JSON response to get a device.
DevicesResponse is the JSON response to list devices.
GroupResponse is the JSON response to list groups.
GroupsResponse is the JSON response to list groups.
Service is the implementation of the web API.
SnapsResponse is the JSON response to list snaps.
StandardResponse is the JSON response from an API method, indicating success or failure.