Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2020 Changes in this version + var ErrMalformedMessage = errors.New("malformed message received") + var ErrNotFoundApp = errors.New("route map not found for this application ID") + var ErrNotFoundDev = errors.New("route map not found for this device EUI") + type DataRate struct + Bandwith float64 + Modulation string + SpreadFactor int64 + type Message struct + ApplicationID string + ApplicationName string + Data string + DevEUI string + DeviceName string + DeviceStatusBattery string + DeviceStatusMrgin string + FCnt int + FPort int + Object interface{} + RxInfo RxInfo + TxInfo TxInfo + type RouteMapRepository interface + Get func(string) (string, error) + Remove func(string) error + Save func(string, string) error + type RxInfo []struct + type Service interface + CreateChannel func(chanID string, appID string) error + CreateThing func(thingID string, devEUI string) error + Publish func(ctx context.Context, token string, msg Message) error + RemoveChannel func(chanID string) error + RemoveThing func(thingID string) error + UpdateChannel func(chanID string, appID string) error + UpdateThing func(thingID string, devEUI string) error + func New(publisher messaging.Publisher, thingsRM, channelsRM RouteMapRepository) Service + type TxInfo struct + Adr bool + CodeRate string + DataRate DataRate + Frequency float64