Documentation
¶
Index ¶
- Variables
- type Manager
- func (m *Manager) AddUpstream(ctx context.Context, upstreams []RpcClientConf) error
- func (m *Manager) DelUpstream(ctx context.Context, name string) error
- func (m *Manager) MethodDetail(ctx context.Context, method string) (parser.MethodDesc, error)
- func (m *Manager) Methods(ctx context.Context) (map[string][]string, error)
- func (m *Manager) Upstream(ctx context.Context, name string) (RpcClientConf, error)
- func (m *Manager) UpstreamClient(ctx context.Context, name string) (grpc.ClientConnInterface, error)
- func (m *Manager) Upstreams(ctx context.Context) ([]RpcClientConf, error)
- type RpcClient
- type RpcClientConf
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) AddUpstream ¶
func (m *Manager) AddUpstream(ctx context.Context, upstreams []RpcClientConf) error
func (*Manager) MethodDetail ¶
func (*Manager) UpstreamClient ¶
type RpcClient ¶
type RpcClient struct { RpcClientConf zrpc.Client ServicesDesc []parser.ServiceDesc }
type RpcClientConf ¶
type RpcClientConf struct { Name string zrpc.RpcClientConf }
Click to show internal directories.
Click to hide internal directories.