Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Package client is a generated GoMock package.
Index ¶
- type Bean
- type Factory
- type FactoryProvider
- type MockBean
- func (m *MockBean) EXPECT() *MockBeanMockRecorder
- func (m *MockBean) GetFrontendClient() v1.WorkflowServiceClient
- func (m *MockBean) GetHistoryClient() v11.HistoryServiceClient
- func (m *MockBean) GetMatchingClient(namespaceIDToName NamespaceIDToNameFunc) (v12.MatchingServiceClient, error)
- func (m *MockBean) GetRemoteAdminClient(cluster string) (v10.AdminServiceClient, error)
- func (m *MockBean) GetRemoteFrontendClient(cluster string) (v1.WorkflowServiceClient, error)
- func (m *MockBean) SetFrontendClient(client v1.WorkflowServiceClient)
- func (m *MockBean) SetHistoryClient(client v11.HistoryServiceClient)
- func (m *MockBean) SetMatchingClient(client v12.MatchingServiceClient)
- func (m *MockBean) SetRemoteAdminClient(cluster string, client v10.AdminServiceClient)
- type MockBeanMockRecorder
- func (mr *MockBeanMockRecorder) GetFrontendClient() *gomock.Call
- func (mr *MockBeanMockRecorder) GetHistoryClient() *gomock.Call
- func (mr *MockBeanMockRecorder) GetMatchingClient(namespaceIDToName interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) GetRemoteAdminClient(cluster interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) GetRemoteFrontendClient(cluster interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) SetFrontendClient(client interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) SetHistoryClient(client interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) SetMatchingClient(client interface{}) *gomock.Call
- func (mr *MockBeanMockRecorder) SetRemoteAdminClient(cluster, client interface{}) *gomock.Call
- type MockFactory
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) NewHistoryClientWithTimeout(timeout time.Duration) (v11.HistoryServiceClient, error)
- func (m *MockFactory) NewLocalAdminClientWithTimeout(timeout, largeTimeout time.Duration) (v10.AdminServiceClient, error)
- func (m *MockFactory) NewLocalFrontendClientWithTimeout(timeout, longPollTimeout time.Duration) (v1.WorkflowServiceClient, error)
- func (m *MockFactory) NewMatchingClientWithTimeout(namespaceIDToName NamespaceIDToNameFunc, ...) (v12.MatchingServiceClient, error)
- func (m *MockFactory) NewRemoteAdminClientWithTimeout(rpcAddress string, timeout, largeTimeout time.Duration) v10.AdminServiceClient
- func (m *MockFactory) NewRemoteFrontendClientWithTimeout(rpcAddress string, timeout, longPollTimeout time.Duration) v1.WorkflowServiceClient
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) NewHistoryClientWithTimeout(timeout interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewLocalAdminClientWithTimeout(timeout, largeTimeout interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewLocalFrontendClientWithTimeout(timeout, longPollTimeout interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewMatchingClientWithTimeout(namespaceIDToName, timeout, longPollTimeout interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewRemoteAdminClientWithTimeout(rpcAddress, timeout, largeTimeout interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewRemoteFrontendClientWithTimeout(rpcAddress, timeout, longPollTimeout interface{}) *gomock.Call
- type MockFactoryProvider
- type MockFactoryProviderMockRecorder
- type NamespaceIDToNameFunc
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() historyservice.HistoryServiceClient SetHistoryClient(client historyservice.HistoryServiceClient) GetMatchingClient(namespaceIDToName NamespaceIDToNameFunc) (matchingservice.MatchingServiceClient, error) SetMatchingClient(client matchingservice.MatchingServiceClient) GetFrontendClient() workflowservice.WorkflowServiceClient SetFrontendClient(client workflowservice.WorkflowServiceClient) GetRemoteAdminClient(cluster string) (adminservice.AdminServiceClient, error) SetRemoteAdminClient(cluster string, client adminservice.AdminServiceClient) GetRemoteFrontendClient(cluster string) (workflowservice.WorkflowServiceClient, error) }
Bean is a collection of clients
type Factory ¶
type Factory interface { NewHistoryClientWithTimeout(timeout time.Duration) (historyservice.HistoryServiceClient, error) NewMatchingClientWithTimeout(namespaceIDToName NamespaceIDToNameFunc, timeout time.Duration, longPollTimeout time.Duration) (matchingservice.MatchingServiceClient, error) NewRemoteFrontendClientWithTimeout(rpcAddress string, timeout time.Duration, longPollTimeout time.Duration) workflowservice.WorkflowServiceClient NewLocalFrontendClientWithTimeout(timeout time.Duration, longPollTimeout time.Duration) (workflowservice.WorkflowServiceClient, error) NewRemoteAdminClientWithTimeout(rpcAddress string, timeout time.Duration, largeTimeout time.Duration) adminservice.AdminServiceClient NewLocalAdminClientWithTimeout(timeout time.Duration, largeTimeout time.Duration) (adminservice.AdminServiceClient, error) }
Factory can be used to create RPC clients for temporal services
type FactoryProvider ¶ added in v1.11.0
type FactoryProvider interface { NewFactory( rpcFactory common.RPCFactory, monitor membership.Monitor, metricsHandler metrics.MetricsHandler, dc *dynamicconfig.Collection, numberOfHistoryShards int32, logger log.Logger, throttledLogger log.Logger, ) Factory }
FactoryProvider can be used to provide a customized client Factory implementation.
func NewFactoryProvider ¶ added in v1.11.0
func NewFactoryProvider() FactoryProvider
NewFactoryProvider creates a default implementation of FactoryProvider.
type MockBean ¶ added in v0.27.0
type MockBean struct {
// contains filtered or unexported fields
}
MockBean is a mock of Bean interface.
func NewMockBean ¶ added in v0.27.0
func NewMockBean(ctrl *gomock.Controller) *MockBean
NewMockBean creates a new mock instance.
func (*MockBean) EXPECT ¶ added in v0.27.0
func (m *MockBean) EXPECT() *MockBeanMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBean) GetFrontendClient ¶ added in v0.27.0
func (m *MockBean) GetFrontendClient() v1.WorkflowServiceClient
GetFrontendClient mocks base method.
func (*MockBean) GetHistoryClient ¶ added in v0.27.0
func (m *MockBean) GetHistoryClient() v11.HistoryServiceClient
GetHistoryClient mocks base method.
func (*MockBean) GetMatchingClient ¶ added in v0.27.0
func (m *MockBean) GetMatchingClient(namespaceIDToName NamespaceIDToNameFunc) (v12.MatchingServiceClient, error)
GetMatchingClient mocks base method.
func (*MockBean) GetRemoteAdminClient ¶ added in v0.27.0
func (m *MockBean) GetRemoteAdminClient(cluster string) (v10.AdminServiceClient, error)
GetRemoteAdminClient mocks base method.
func (*MockBean) GetRemoteFrontendClient ¶ added in v0.27.0
func (m *MockBean) GetRemoteFrontendClient(cluster string) (v1.WorkflowServiceClient, error)
GetRemoteFrontendClient mocks base method.
func (*MockBean) SetFrontendClient ¶ added in v0.27.0
func (m *MockBean) SetFrontendClient(client v1.WorkflowServiceClient)
SetFrontendClient mocks base method.
func (*MockBean) SetHistoryClient ¶ added in v0.27.0
func (m *MockBean) SetHistoryClient(client v11.HistoryServiceClient)
SetHistoryClient mocks base method.
func (*MockBean) SetMatchingClient ¶ added in v0.27.0
func (m *MockBean) SetMatchingClient(client v12.MatchingServiceClient)
SetMatchingClient mocks base method.
func (*MockBean) SetRemoteAdminClient ¶ added in v0.27.0
func (m *MockBean) SetRemoteAdminClient(cluster string, client v10.AdminServiceClient)
SetRemoteAdminClient mocks base method.
type MockBeanMockRecorder ¶ added in v0.27.0
type MockBeanMockRecorder struct {
// contains filtered or unexported fields
}
MockBeanMockRecorder is the mock recorder for MockBean.
func (*MockBeanMockRecorder) GetFrontendClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) GetFrontendClient() *gomock.Call
GetFrontendClient indicates an expected call of GetFrontendClient.
func (*MockBeanMockRecorder) GetHistoryClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) GetHistoryClient() *gomock.Call
GetHistoryClient indicates an expected call of GetHistoryClient.
func (*MockBeanMockRecorder) GetMatchingClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) GetMatchingClient(namespaceIDToName interface{}) *gomock.Call
GetMatchingClient indicates an expected call of GetMatchingClient.
func (*MockBeanMockRecorder) GetRemoteAdminClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) GetRemoteAdminClient(cluster interface{}) *gomock.Call
GetRemoteAdminClient indicates an expected call of GetRemoteAdminClient.
func (*MockBeanMockRecorder) GetRemoteFrontendClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) GetRemoteFrontendClient(cluster interface{}) *gomock.Call
GetRemoteFrontendClient indicates an expected call of GetRemoteFrontendClient.
func (*MockBeanMockRecorder) SetFrontendClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) SetFrontendClient(client interface{}) *gomock.Call
SetFrontendClient indicates an expected call of SetFrontendClient.
func (*MockBeanMockRecorder) SetHistoryClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) SetHistoryClient(client interface{}) *gomock.Call
SetHistoryClient indicates an expected call of SetHistoryClient.
func (*MockBeanMockRecorder) SetMatchingClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) SetMatchingClient(client interface{}) *gomock.Call
SetMatchingClient indicates an expected call of SetMatchingClient.
func (*MockBeanMockRecorder) SetRemoteAdminClient ¶ added in v0.27.0
func (mr *MockBeanMockRecorder) SetRemoteAdminClient(cluster, client interface{}) *gomock.Call
SetRemoteAdminClient indicates an expected call of SetRemoteAdminClient.
type MockFactory ¶ added in v1.14.0
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶ added in v1.14.0
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) EXPECT ¶ added in v1.14.0
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFactory) NewHistoryClientWithTimeout ¶ added in v1.14.0
func (m *MockFactory) NewHistoryClientWithTimeout(timeout time.Duration) (v11.HistoryServiceClient, error)
NewHistoryClientWithTimeout mocks base method.
func (*MockFactory) NewLocalAdminClientWithTimeout ¶ added in v1.18.0
func (m *MockFactory) NewLocalAdminClientWithTimeout(timeout, largeTimeout time.Duration) (v10.AdminServiceClient, error)
NewLocalAdminClientWithTimeout mocks base method.
func (*MockFactory) NewLocalFrontendClientWithTimeout ¶ added in v1.18.0
func (m *MockFactory) NewLocalFrontendClientWithTimeout(timeout, longPollTimeout time.Duration) (v1.WorkflowServiceClient, error)
NewLocalFrontendClientWithTimeout mocks base method.
func (*MockFactory) NewMatchingClientWithTimeout ¶ added in v1.14.0
func (m *MockFactory) NewMatchingClientWithTimeout(namespaceIDToName NamespaceIDToNameFunc, timeout, longPollTimeout time.Duration) (v12.MatchingServiceClient, error)
NewMatchingClientWithTimeout mocks base method.
func (*MockFactory) NewRemoteAdminClientWithTimeout ¶ added in v1.18.0
func (m *MockFactory) NewRemoteAdminClientWithTimeout(rpcAddress string, timeout, largeTimeout time.Duration) v10.AdminServiceClient
NewRemoteAdminClientWithTimeout mocks base method.
func (*MockFactory) NewRemoteFrontendClientWithTimeout ¶ added in v1.18.0
func (m *MockFactory) NewRemoteFrontendClientWithTimeout(rpcAddress string, timeout, longPollTimeout time.Duration) v1.WorkflowServiceClient
NewRemoteFrontendClientWithTimeout mocks base method.
type MockFactoryMockRecorder ¶ added in v1.14.0
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
func (*MockFactoryMockRecorder) NewHistoryClientWithTimeout ¶ added in v1.14.0
func (mr *MockFactoryMockRecorder) NewHistoryClientWithTimeout(timeout interface{}) *gomock.Call
NewHistoryClientWithTimeout indicates an expected call of NewHistoryClientWithTimeout.
func (*MockFactoryMockRecorder) NewLocalAdminClientWithTimeout ¶ added in v1.18.0
func (mr *MockFactoryMockRecorder) NewLocalAdminClientWithTimeout(timeout, largeTimeout interface{}) *gomock.Call
NewLocalAdminClientWithTimeout indicates an expected call of NewLocalAdminClientWithTimeout.
func (*MockFactoryMockRecorder) NewLocalFrontendClientWithTimeout ¶ added in v1.18.0
func (mr *MockFactoryMockRecorder) NewLocalFrontendClientWithTimeout(timeout, longPollTimeout interface{}) *gomock.Call
NewLocalFrontendClientWithTimeout indicates an expected call of NewLocalFrontendClientWithTimeout.
func (*MockFactoryMockRecorder) NewMatchingClientWithTimeout ¶ added in v1.14.0
func (mr *MockFactoryMockRecorder) NewMatchingClientWithTimeout(namespaceIDToName, timeout, longPollTimeout interface{}) *gomock.Call
NewMatchingClientWithTimeout indicates an expected call of NewMatchingClientWithTimeout.
func (*MockFactoryMockRecorder) NewRemoteAdminClientWithTimeout ¶ added in v1.18.0
func (mr *MockFactoryMockRecorder) NewRemoteAdminClientWithTimeout(rpcAddress, timeout, largeTimeout interface{}) *gomock.Call
NewRemoteAdminClientWithTimeout indicates an expected call of NewRemoteAdminClientWithTimeout.
func (*MockFactoryMockRecorder) NewRemoteFrontendClientWithTimeout ¶ added in v1.18.0
func (mr *MockFactoryMockRecorder) NewRemoteFrontendClientWithTimeout(rpcAddress, timeout, longPollTimeout interface{}) *gomock.Call
NewRemoteFrontendClientWithTimeout indicates an expected call of NewRemoteFrontendClientWithTimeout.
type MockFactoryProvider ¶ added in v1.14.0
type MockFactoryProvider struct {
// contains filtered or unexported fields
}
MockFactoryProvider is a mock of FactoryProvider interface.
func NewMockFactoryProvider ¶ added in v1.14.0
func NewMockFactoryProvider(ctrl *gomock.Controller) *MockFactoryProvider
NewMockFactoryProvider creates a new mock instance.
func (*MockFactoryProvider) EXPECT ¶ added in v1.14.0
func (m *MockFactoryProvider) EXPECT() *MockFactoryProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFactoryProvider) NewFactory ¶ added in v1.14.0
func (m *MockFactoryProvider) NewFactory(rpcFactory common.RPCFactory, monitor membership.Monitor, metricsHandler metrics.MetricsHandler, dc *dynamicconfig.Collection, numberOfHistoryShards int32, logger, throttledLogger log.Logger) Factory
NewFactory mocks base method.
type MockFactoryProviderMockRecorder ¶ added in v1.14.0
type MockFactoryProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryProviderMockRecorder is the mock recorder for MockFactoryProvider.
func (*MockFactoryProviderMockRecorder) NewFactory ¶ added in v1.14.0
func (mr *MockFactoryProviderMockRecorder) NewFactory(rpcFactory, monitor, metricsHandler, dc, numberOfHistoryShards, logger, throttledLogger interface{}) *gomock.Call
NewFactory indicates an expected call of NewFactory.