Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeToLive = timeToLive
Functions ¶
This section is empty.
Types ¶
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
func (Facade) Client ¶
func (f Facade) Client() internal.EtcdClient
func (Facade) Monitor ¶
func (f Facade) Monitor(key string, l FacadeListener)
type FacadeListener ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(endpoints []string, key, value string, opts ...PublisherOption) *Publisher
type PublisherOption ¶
type PublisherOption func(client *Publisher)
func WithId ¶
func WithId(id int64) PublisherOption
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(endpoints []string, key string, opts ...SubOption) (*Subscriber, error)
func (*Subscriber) AddListener ¶
func (s *Subscriber) AddListener(listener func())
func (*Subscriber) Values ¶
func (s *Subscriber) Values() []string
Click to show internal directories.
Click to hide internal directories.