discovery

package
v2.9.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 21 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL