Documentation ¶
Index ¶
- func GetConn(schema, serviceName string, etcdCfg *EtcdCfg) (*grpc.ClientConn, error)
- func GetPrefix(schema, serviceName string) string
- func Int32ToString(i int32) string
- func OperationIDGenerator() string
- func RegisterEtcd(schema string, cfg *EtcdCfg, myHost string, myPort int, serviceName string, ...) (err error)
- func UnRegisterEtcd()
- type EtcdCfg
- type RegEtcd
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int32ToString ¶
func OperationIDGenerator ¶
func OperationIDGenerator() string
func RegisterEtcd ¶
func RegisterEtcd(schema string, cfg *EtcdCfg, myHost string, myPort int, serviceName string, ttl int) (err error)
etcdAddr separated by commas ttl:单位秒
func UnRegisterEtcd ¶
func UnRegisterEtcd()
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) Build ¶
func (r *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*Resolver) ResolveNow ¶
func (r1 *Resolver) ResolveNow(rn resolver.ResolveNowOptions)
Click to show internal directories.
Click to hide internal directories.