Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolver ¶
NewResolver return resolver builder target example: "http://127.0.0.1:2379,http://127.0.0.1:12379,http://127.0.0.1:22379" service is service name
Types ¶
type EngineClient ¶
type EngineClient struct { AppID string AppSecret string DiscoverUrl string // contains filtered or unexported fields }
func NewEngineClient ¶
func NewEngineClient(appID, appSecret, discoverUrl string) *EngineClient
func (*EngineClient) InitEngineClient ¶
func (engine *EngineClient) InitEngineClient() error
type ProcessorClient ¶
type ProcessorClient struct { AppID string AppSecret string DiscoverUrl string // contains filtered or unexported fields }
func NewProcessorClient ¶
func NewProcessorClient(appID, appSecret, discoverUrl string) *ProcessorClient
func (*ProcessorClient) InitProcessorClient ¶
func (processor *ProcessorClient) InitProcessorClient() error
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
resolver is the implementaion of grpc.resolve.Builder
func (*Resolver) Build ¶
func (r *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error)
Build to resolver.Resolver
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(rn resolver.ResolveNowOption)
ResolveNow
Click to show internal directories.
Click to hide internal directories.