Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGrantTTL = 5
View Source
var DefaultPeerPublishInterval = 1 * time.Second
Functions ¶
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
func New ¶
DNS example: `etcd://etcd.dmesh:2379/eos-dev1` DNS example: `etcd://<etcd-host>:<etcd-port>/<etcd-namespace>`
func (*Etcd) Peers ¶
func (d *Etcd) Peers() (out []*dmesh.SearchPeer)
func (*Etcd) PublishWithin ¶
publishWithin 5 minutes durationToNext = 10 years I was waiting for 10 years interrupted:
you're asking for 5 minutes? that's shorter than 10 years! let's make the durationToNextPublish = 5 minutes
PublishWithin(5 * time.Minute)
Click to show internal directories.
Click to hide internal directories.