Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface {
component.Interface
component.ManagementInterface
SetNetworkServer(addr, cert, token string)
HandleUplink(uplink *pb.UplinkMessage) error
HandleDownlink(downlink *pb.DownlinkMessage) error
HandleActivation(activation *pb.DeviceActivationRequest) (*pb.DeviceActivationResponse, error)
ActivateRouter(id string) (<-chan *pb.DownlinkMessage, error)
DeactivateRouter(id string) error
ActivateHandlerUplink(id string) (<-chan *pb.DeduplicatedUplinkMessage, error)
DeactivateHandlerUplink(id string) error
}
type ByFCntUp ¶
type ByFCntUp []*pb_lorawan.Device
ByFCntUp implements sort.Interface for []*pb_lorawan.Device based on FCnt
type ByScore ¶
type ByScore []*pb.DownlinkOption
ByScore is used to sort a list of DownlinkOptions based on Score
type Deduplicator ¶
type Deduplicator interface {
Deduplicate(key string, value interface{}) []interface{}
}
func NewDeduplicator ¶
func NewDeduplicator(timeout time.Duration) Deduplicator
Click to show internal directories.
Click to hide internal directories.