Documentation ¶
Index ¶
- type Bean
- type DispatcherProvider
- type Factory
- type MockClientBean
- func (_m *MockClientBean) GetFrontendClient() frontend.Client
- func (_m *MockClientBean) GetHistoryClient() history.Client
- func (_m *MockClientBean) GetMatchingClient() matching.Client
- func (_m *MockClientBean) GetRemoteAdminClient(_a0 string) admin.Client
- func (_m *MockClientBean) GetRemoteFrontendClient(_a0 string) frontend.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bean ¶ added in v0.5.0
type Bean interface { GetHistoryClient() history.Client GetMatchingClient() matching.Client GetFrontendClient() frontend.Client GetRemoteAdminClient(cluster string) admin.Client GetRemoteFrontendClient(cluster string) frontend.Client }
Bean in an collection of clients
func NewClientBean ¶ added in v0.5.0
func NewClientBean(factory Factory, dispatcherProvider DispatcherProvider, clusterMetadata cluster.Metadata) (Bean, error)
NewClientBean provides a collection of clients
type DispatcherProvider ¶ added in v0.5.0
type DispatcherProvider interface {
Get(name string, address string) (*yarpc.Dispatcher, error)
}
DispatcherProvider provides a diapatcher to a given address
func NewIPYarpcDispatcherProvider ¶ added in v0.5.0
func NewIPYarpcDispatcherProvider() DispatcherProvider
NewIPYarpcDispatcherProvider create a dispatcher provider which handles with IP address
type Factory ¶
type Factory interface { NewHistoryClient() (history.Client, error) NewMatchingClient() (matching.Client, error) NewFrontendClient() (frontend.Client, error) NewHistoryClientWithTimeout(timeout time.Duration) (history.Client, error) NewMatchingClientWithTimeout(timeout time.Duration, longPollTimeout time.Duration) (matching.Client, error) NewFrontendClientWithTimeout(timeout time.Duration, longPollTimeout time.Duration) (frontend.Client, error) NewAdminClientWithTimeoutAndDispatcher(rpcName string, timeout time.Duration, dispatcher *yarpc.Dispatcher) (admin.Client, error) NewFrontendClientWithTimeoutAndDispatcher(rpcName string, timeout time.Duration, longPollTimeout time.Duration, dispatcher *yarpc.Dispatcher) (frontend.Client, error) }
Factory can be used to create RPC clients for cadence services
func NewRPCClientFactory ¶ added in v0.3.2
func NewRPCClientFactory(rpcFactory common.RPCFactory, monitor membership.Monitor, metricsClient metrics.Client, numberOfHistoryShards int) Factory
NewRPCClientFactory creates an instance of client factory that knows how to dispatch RPC calls.
type MockClientBean ¶ added in v0.5.0
MockClientBean is an autogenerated mock type for the MockClientBean type
func (*MockClientBean) GetFrontendClient ¶ added in v0.5.0
func (_m *MockClientBean) GetFrontendClient() frontend.Client
GetFrontendClient provides a mock function with given fields:
func (*MockClientBean) GetHistoryClient ¶ added in v0.5.0
func (_m *MockClientBean) GetHistoryClient() history.Client
GetHistoryClient provides a mock function with given fields:
func (*MockClientBean) GetMatchingClient ¶ added in v0.5.0
func (_m *MockClientBean) GetMatchingClient() matching.Client
GetMatchingClient provides a mock function with given fields:
func (*MockClientBean) GetRemoteAdminClient ¶ added in v0.5.0
func (_m *MockClientBean) GetRemoteAdminClient(_a0 string) admin.Client
GetRemoteAdminClient provides a mock function with given fields: _a0
func (*MockClientBean) GetRemoteFrontendClient ¶ added in v0.5.0
func (_m *MockClientBean) GetRemoteFrontendClient(_a0 string) frontend.Client
GetRemoteFrontendClient provides a mock function with given fields: _a0