Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { // Name returns the name of registry built by this builder. Name() string // Build creates a new Registry with the options. //Build(name string, opts data.Map) Registry Build(server Server, opts data.Map) (Registry, error) }
Builder creates a registry.
type Registry ¶
type Registry interface { // Register send all addresses to registry and keep refreshing. Register() //Heartbeat() // Offline remove server addresses from registry and stop refreshing immediately. Offline() error // Online recover server registering. Online() error // Close stop the register. Close() }
Registry defines interfaces for register server.
Click to show internal directories.
Click to hide internal directories.