Documentation
¶
Overview ¶
Package http contains the domain concept definitions needed to support Mainflux http adapter service functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶ added in v0.42.0
type Publisher interface {
messaging.CommandPublisher
messaging.MessageDispatcher
}
Publisher specifies the minimal publishing capability the HTTP adapter needs.
type Service ¶
type Service interface {
// Publish Message
Publish(ctx context.Context, key domain.ThingKey, msg protomfx.Message) error
// SendCommandToThing publishes a command to the specified thing.
SendCommandToThing(ctx context.Context, token, thingID string, cmd protomfx.Command) error
// SendCommandToThingByKey publishes a command to the specified thing, authorized by publisher thing key (M2M).
SendCommandToThingByKey(ctx context.Context, key domain.ThingKey, thingID string, cmd protomfx.Command) error
// SendCommandToGroup publishes a command to things that belong to a specified group, authorized by user token.
SendCommandToGroup(ctx context.Context, token, groupID string, cmd protomfx.Command) error
// SendCommandToGroupByKey publishes a command to a group, authorized by publisher thing key (M2M).
SendCommandToGroupByKey(ctx context.Context, key domain.ThingKey, groupID string, cmd protomfx.Command) error
}
Service specifies coap service API.
Click to show internal directories.
Click to hide internal directories.