controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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