etcd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdClient

type EtcdClient struct {
	clientv3.Client
}

type EtcdPubSub

type EtcdPubSub struct {
	EtcdClient
	Channel string
}

func (*EtcdPubSub) Close

func (ePubSub *EtcdPubSub) Close() error

func (*EtcdPubSub) Publish

func (ePubSub *EtcdPubSub) Publish(msg string) error

func (*EtcdPubSub) ReceiveMessage

func (ePubSub *EtcdPubSub) ReceiveMessage() chan string

func (*EtcdPubSub) SetChannel

func (ePubSub *EtcdPubSub) SetChannel(channel string) i.IPubSub

func (*EtcdPubSub) SetClient

func (ePubSub *EtcdPubSub) SetClient(iClient *i.IClient) i.IPubSub

type EtcdQueue

type EtcdQueue struct {
	EtcdClient
	Topic string
}

func (*EtcdQueue) Dequeue

func (eq *EtcdQueue) Dequeue() (string, error)

func (*EtcdQueue) Enqueue

func (eq *EtcdQueue) Enqueue(val string) error

func (*EtcdQueue) SetClient

func (eq *EtcdQueue) SetClient(iClient *i.IClient) i.IQueue

func (*EtcdQueue) SetTopic

func (eq *EtcdQueue) SetTopic(topic string) i.IQueue

Jump to

Keyboard shortcuts

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