Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedSet ¶
type FixedSet struct {
LastEvent time.Time
EventCount int
// contains filtered or unexported fields
}
FixedSet can be used as a fixed set of endpoints for testing or to use the load balancing functions without zookeeper.
func (*FixedSet) Close ¶
func (fs *FixedSet) Close()
Close for this service just sets a boolean since there isn't a lot of async stuff going on.
func (*FixedSet) Endpoints ¶
Endpoints returns a slice of the current list of servers/endpoints associated with this watch.
func (*FixedSet) Event ¶
func (fs *FixedSet) Event() <-chan struct{}
Event returns the event channel. This channel will get an object whenever something changes with the list of endpoints.
func (*FixedSet) SetEndpoints ¶
SetEndpoints sets current list of endpoints.
Click to show internal directories.
Click to hide internal directories.

