mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed?
<!-- Describe what has changed in this PR -->
Remove license header from every file. Because it is really hard to
follow in this PR here is the summary:
1. License header is removed from all `.go` and `.proto` files
:fireworks::fireworks:🎆.
2. `LICENSE` file in the root directory has only Temporal and Uber
copyrights.
3. 5 other `LICENSE` files added to the packages which have copyrights
different from Temporal and Uber: Datadog, Xargin, "Mat Ryer, Tyler
Bunnell and contributors".
4. `license_file` flag is removed from all code generation tools.
5. `copyright_file` flag is removed from `go:generate mockgen`
directive.
6. All copyright related targets are removed from `Makefile`.
7. Updated Temporal copyright year to 2025 everywhere.
## Why?
<!-- Tell your future self why have you made these changes -->
I double checked with legal department that it is not needed to have
license header in every file. One file per repo is enough. I put all
copyrights to the root `LICENSE` file and removed header from all other
files. Also updated tools and `Makefile`.
120 lines
4.3 KiB
Go
120 lines
4.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: client_bean.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package client -source client_bean.go -destination client_bean_mock.go
|
|
//
|
|
|
|
// Package client is a generated GoMock package.
|
|
package client
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
workflowservice "go.temporal.io/api/workflowservice/v1"
|
|
adminservice "go.temporal.io/server/api/adminservice/v1"
|
|
historyservice "go.temporal.io/server/api/historyservice/v1"
|
|
matchingservice "go.temporal.io/server/api/matchingservice/v1"
|
|
gomock "go.uber.org/mock/gomock"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// MockBean is a mock of Bean interface.
|
|
type MockBean struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBeanMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockBeanMockRecorder is the mock recorder for MockBean.
|
|
type MockBeanMockRecorder struct {
|
|
mock *MockBean
|
|
}
|
|
|
|
// NewMockBean creates a new mock instance.
|
|
func NewMockBean(ctrl *gomock.Controller) *MockBean {
|
|
mock := &MockBean{ctrl: ctrl}
|
|
mock.recorder = &MockBeanMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockBean) EXPECT() *MockBeanMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetFrontendClient mocks base method.
|
|
func (m *MockBean) GetFrontendClient() workflowservice.WorkflowServiceClient {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetFrontendClient")
|
|
ret0, _ := ret[0].(workflowservice.WorkflowServiceClient)
|
|
return ret0
|
|
}
|
|
|
|
// GetFrontendClient indicates an expected call of GetFrontendClient.
|
|
func (mr *MockBeanMockRecorder) GetFrontendClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFrontendClient", reflect.TypeOf((*MockBean)(nil).GetFrontendClient))
|
|
}
|
|
|
|
// GetHistoryClient mocks base method.
|
|
func (m *MockBean) GetHistoryClient() historyservice.HistoryServiceClient {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetHistoryClient")
|
|
ret0, _ := ret[0].(historyservice.HistoryServiceClient)
|
|
return ret0
|
|
}
|
|
|
|
// GetHistoryClient indicates an expected call of GetHistoryClient.
|
|
func (mr *MockBeanMockRecorder) GetHistoryClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistoryClient", reflect.TypeOf((*MockBean)(nil).GetHistoryClient))
|
|
}
|
|
|
|
// GetMatchingClient mocks base method.
|
|
func (m *MockBean) GetMatchingClient(namespaceIDToName NamespaceIDToNameFunc) (matchingservice.MatchingServiceClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetMatchingClient", namespaceIDToName)
|
|
ret0, _ := ret[0].(matchingservice.MatchingServiceClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetMatchingClient indicates an expected call of GetMatchingClient.
|
|
func (mr *MockBeanMockRecorder) GetMatchingClient(namespaceIDToName any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMatchingClient", reflect.TypeOf((*MockBean)(nil).GetMatchingClient), namespaceIDToName)
|
|
}
|
|
|
|
// GetRemoteAdminClient mocks base method.
|
|
func (m *MockBean) GetRemoteAdminClient(arg0 string) (adminservice.AdminServiceClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRemoteAdminClient", arg0)
|
|
ret0, _ := ret[0].(adminservice.AdminServiceClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetRemoteAdminClient indicates an expected call of GetRemoteAdminClient.
|
|
func (mr *MockBeanMockRecorder) GetRemoteAdminClient(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteAdminClient", reflect.TypeOf((*MockBean)(nil).GetRemoteAdminClient), arg0)
|
|
}
|
|
|
|
// GetRemoteFrontendClient mocks base method.
|
|
func (m *MockBean) GetRemoteFrontendClient(arg0 string) (grpc.ClientConnInterface, workflowservice.WorkflowServiceClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRemoteFrontendClient", arg0)
|
|
ret0, _ := ret[0].(grpc.ClientConnInterface)
|
|
ret1, _ := ret[1].(workflowservice.WorkflowServiceClient)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetRemoteFrontendClient indicates an expected call of GetRemoteFrontendClient.
|
|
func (mr *MockBeanMockRecorder) GetRemoteFrontendClient(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteFrontendClient", reflect.TypeOf((*MockBean)(nil).GetRemoteFrontendClient), arg0)
|
|
}
|