Versions in this module Expand all Collapse all v0 v0.0.3 Apr 28, 2024 Changes in this version + type Client struct + func NewEtcdEndpoints(endpoints []string, timeout time.Duration) *Client + type NamedServerDiscover struct + func NewNamedServerDiscover(clt *Client, opts ...ServerDiscoverOption) *NamedServerDiscover + func (discover *NamedServerDiscover) Close() + func (discover *NamedServerDiscover) ElectionServerEndpoint(name string) string + type Server struct + Addr string + Name string + func (svr *Server) GetAddr() string + func (svr *Server) MarshalBinary() (data []byte, err error) + func (svr *Server) UnmarshalBinary(data []byte) error + type ServerDiscoverOption func(svr *Server) + func WithServerNamed(name string) ServerDiscoverOption + func WithServerPort(port int) ServerDiscoverOption