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 Service ¶
type Service interface {
// Publish Message
Publish(ctx context.Context, key domain.ThingKey, msg protomfx.Message) error
// SendCommandToThing publishes a command message to the specified thing.
SendCommandToThing(ctx context.Context, token, thingID string, msg protomfx.Message) error
// SendCommandToThingByKey publishes a command message to the specified thing, authorized by publisher thing key (M2M).
SendCommandToThingByKey(ctx context.Context, key domain.ThingKey, thingID string, msg protomfx.Message) error
// SendCommandToGroup publishes a command message to things that belong to a specified group, authorized by user token.
SendCommandToGroup(ctx context.Context, token, groupID string, msg protomfx.Message) error
// SendCommandToGroupByKey publishes a command message to a group, authorized by publisher thing key (M2M).
SendCommandToGroupByKey(ctx context.Context, key domain.ThingKey, groupID string, msg protomfx.Message) error
}
Service specifies coap service API.
Click to show internal directories.
Click to hide internal directories.