Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Prefix = "etcd3_naming"
Prefix should start and end with no slash
Functions ¶
func Register ¶
func Register(name string, host string, port int, target string, interval time.Duration, ttl int) error
Register service to service registry. name: service name; host: your service running host; port: your service running export port; target: your service register target; interval: ; ttl: ;
func UnRegister ¶
UnRegister delete registered service from etcd
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the implementaion of grpc.naming.Resolver
func NewResolver ¶
NewResolver return resolver with service name
Click to show internal directories.
Click to hide internal directories.