discovery

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: MIT Imports: 12 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)
	WithMasterAuthServers(serverID ...string)
	Announce(announcement *pb.Announcement) error
	GetAll(serviceName string, limit, offest int) ([]*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