Documentation
¶
Index ¶
- type ThingController
- func (mc *ThingController) AuthDevice(body []byte, authorization string) error
- func (mc *ThingController) ListDevices(authorization string) error
- func (mc *ThingController) PublishData(body []byte, authorization string) error
- func (mc *ThingController) Register(body []byte, authorizationHeader string) error
- func (mc *ThingController) RequestData(body []byte, authorization string) error
- func (mc *ThingController) Unregister(body []byte, authorizationHeader string) error
- func (mc *ThingController) UpdateData(body []byte, authorization string) error
- func (mc *ThingController) UpdateSchema(body []byte, authorizationHeader string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThingController ¶
type ThingController struct {
// contains filtered or unexported fields
}
ThingController handle messages received from a service
func NewThingController ¶
func NewThingController(logger logging.Logger, thingInteractor interactors.Interactor) *ThingController
NewThingController constructs the ThingController
func (*ThingController) AuthDevice ¶
func (mc *ThingController) AuthDevice(body []byte, authorization string) error
AuthDevice handles the auth device request and execute its use case
func (*ThingController) ListDevices ¶
func (mc *ThingController) ListDevices(authorization string) error
ListDevices handles the list devices request and execute its use case
func (*ThingController) PublishData ¶
func (mc *ThingController) PublishData(body []byte, authorization string) error
PublishData handles the publish data request and execute its use case
func (*ThingController) Register ¶
func (mc *ThingController) Register(body []byte, authorizationHeader string) error
Register handles the register device request and execute its use case
func (*ThingController) RequestData ¶
func (mc *ThingController) RequestData(body []byte, authorization string) error
RequestData handles the request data request and execute its use case
func (*ThingController) Unregister ¶
func (mc *ThingController) Unregister(body []byte, authorizationHeader string) error
Unregister handles the unregister device request and execute its use case
func (*ThingController) UpdateData ¶
func (mc *ThingController) UpdateData(body []byte, authorization string) error
UpdateData handles the update data request and execute its use case
func (*ThingController) UpdateSchema ¶
func (mc *ThingController) UpdateSchema(body []byte, authorizationHeader string) error
UpdateSchema handles the update schema request and execute its use case