{"modulePath":"github.com/hyperhq/hypercli","version":"v1.10.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package memory\n\n## Functions\n\n```go\nfunc Init()\n```\nInit registers the memory backend on demand.\n\n## Types\n\n```go\ntype Discovery struct {\n\t// contains filtered or unexported fields\n}\n```\nDiscovery implements a descovery backend that keeps data in memory.\n\n```go\nfunc (s *Discovery) Initialize(_ string, heartbeat time.Duration, _ time.Duration, _ map[string]string) error\n```\nInitialize sets the heartbeat for the memory backend.\n\n```go\nfunc (s *Discovery) Register(addr string) error\n```\nRegister adds a new address to the discovery.\n\n```go\nfunc (s *Discovery) Watch(stopCh \u003c-chan struct{}) (\u003c-chan discovery.Entries, \u003c-chan error)\n```\nWatch sends periodic discovery updates to a channel.\n\n","path":"github.com/hyperhq/hypercli/pkg/discovery/memory","name":"memory","synopsis":"","isRedistributable":true}
