Documentation ¶
Overview ¶
Package discovery implements TTN Service Discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery interface { component.Interface WithCache(options announcement.CacheOptions) MonitorServiceConnectivity() WithMasterAuthServers(serverID ...string) Announce(announcement *pb.Announcement) error GetAll(serviceName string, limit, offset uint64) ([]*pb.Announcement, error) Get(serviceName string, id string) (*pb.Announcement, error) AddMetadata(serviceName string, id string, metadata *pb.Metadata) error DeleteMetadata(serviceName string, id string, metadata *pb.Metadata) error }
Discovery specifies the interface for the TTN Service Discovery component
func NewRedisDiscovery ¶
func NewRedisDiscovery(client *redis.Client) Discovery
NewRedisDiscovery creates a new Redis-based discovery service
Click to show internal directories.
Click to hide internal directories.