Documentation
¶
Index ¶
Constants ¶
View Source
const ( RootPrefix = "/afpro.micro.root/" NodePrefix = RootPrefix + "node/" ServicePrefix = RootPrefix + "service/" ConfigPrefix = RootPrefix + "config/" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ClientArgs ¶ added in v1.2.0
type ClientArgs struct {
EtcdArgs
}
func (*ClientArgs) CreateGRpcClient ¶ added in v1.2.0
func (args *ClientArgs) CreateGRpcClient() (*GRpcClient, error)
type EtcdArgs ¶ added in v1.2.0
type GRpcClient ¶
type GRpcClient struct {
// contains filtered or unexported fields
}
func NewGRpcClient ¶
func NewGRpcClient(etcd []string) (*GRpcClient, error)
func (*GRpcClient) Close ¶
func (client *GRpcClient) Close() error
func (*GRpcClient) GetService ¶
func (client *GRpcClient) GetService(name string) (*grpc.ClientConn, error)
type GRpcHost ¶
type GRpcHost struct {
// contains filtered or unexported fields
}
func NewGRpcHost ¶ added in v1.2.0
func (*GRpcHost) AddService ¶
func (s *GRpcHost) AddService(desc *grpc.ServiceDesc, impl interface{})
Click to show internal directories.
Click to hide internal directories.