etcd

package
v0.0.0-...-466853b Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is an etcd registry.

func NewRegistry

func NewRegistry(client *clientv3.Client, logger *log.Logger, namespace string) (*Registry, error)

NewRegistry returns an etcd Registry.

func (*Registry) Close

func (r *Registry) Close() error

Close etcd connection and registered backends.

func (*Registry) Create

func (r *Registry) Create(backendName, topicName string) error

Create a topic in the registry.

func (*Registry) RegisterBackend

func (r *Registry) RegisterBackend(name string, backend lobby.Backend)

RegisterBackend registers a backend under the given name.

func (*Registry) Topic

func (r *Registry) Topic(name string) (lobby.Topic, error)

Topic returns the selected topic from the Backend.

Directories

Path Synopsis
Package etcdpb is a generated protocol buffer package.
Package etcdpb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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