Documentation ¶
Index ¶
- func BuildPrefix(server Server) string
- func BuildRegisterPath(server Server) string
- func BuildResolverUrl(app string) string
- func Exist(l []resolver.Address, addr resolver.Address) bool
- func Remove(s []resolver.Address, addr resolver.Address) ([]resolver.Address, bool)
- type Register
- type Resolver
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrefix ¶
func BuildRegisterPath ¶
func BuildResolverUrl ¶
Types ¶
type Register ¶
type Register struct { EtcdAddrs []string DialTimeout int // contains filtered or unexported fields }
func NewRegister ¶
NewRegister create a register based on etcd
func (*Register) GetServerInfo ¶
func (*Register) UpdateHandler ¶
func (r *Register) UpdateHandler() http.HandlerFunc
type Resolver ¶
type Resolver struct { EtcdAddrs []string DialTimeout int // contains filtered or unexported fields }
Resolver for grpc client
func NewResolver ¶
NewResolver create a new resolver.Builder base on etcd
func (*Resolver) Build ¶
func (r *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build creates a new resolver.Resolver for the given target
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(o resolver.ResolveNowOptions)
ResolveNow resolver.Resolver interface
Click to show internal directories.
Click to hide internal directories.