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`.
158 lines
6.1 KiB
Go
158 lines
6.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: rpc.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package common -source rpc.go -destination rpc_mock.go
|
|
//
|
|
|
|
// Package common is a generated GoMock package.
|
|
package common
|
|
|
|
import (
|
|
net "net"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// MockRPCFactory is a mock of RPCFactory interface.
|
|
type MockRPCFactory struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRPCFactoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockRPCFactoryMockRecorder is the mock recorder for MockRPCFactory.
|
|
type MockRPCFactoryMockRecorder struct {
|
|
mock *MockRPCFactory
|
|
}
|
|
|
|
// NewMockRPCFactory creates a new mock instance.
|
|
func NewMockRPCFactory(ctrl *gomock.Controller) *MockRPCFactory {
|
|
mock := &MockRPCFactory{ctrl: ctrl}
|
|
mock.recorder = &MockRPCFactoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockRPCFactory) EXPECT() *MockRPCFactoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CreateHistoryGRPCConnection mocks base method.
|
|
func (m *MockRPCFactory) CreateHistoryGRPCConnection(rpcAddress string) *grpc.ClientConn {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateHistoryGRPCConnection", rpcAddress)
|
|
ret0, _ := ret[0].(*grpc.ClientConn)
|
|
return ret0
|
|
}
|
|
|
|
// CreateHistoryGRPCConnection indicates an expected call of CreateHistoryGRPCConnection.
|
|
func (mr *MockRPCFactoryMockRecorder) CreateHistoryGRPCConnection(rpcAddress any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHistoryGRPCConnection", reflect.TypeOf((*MockRPCFactory)(nil).CreateHistoryGRPCConnection), rpcAddress)
|
|
}
|
|
|
|
// CreateLocalFrontendGRPCConnection mocks base method.
|
|
func (m *MockRPCFactory) CreateLocalFrontendGRPCConnection() *grpc.ClientConn {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateLocalFrontendGRPCConnection")
|
|
ret0, _ := ret[0].(*grpc.ClientConn)
|
|
return ret0
|
|
}
|
|
|
|
// CreateLocalFrontendGRPCConnection indicates an expected call of CreateLocalFrontendGRPCConnection.
|
|
func (mr *MockRPCFactoryMockRecorder) CreateLocalFrontendGRPCConnection() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocalFrontendGRPCConnection", reflect.TypeOf((*MockRPCFactory)(nil).CreateLocalFrontendGRPCConnection))
|
|
}
|
|
|
|
// CreateLocalFrontendHTTPClient mocks base method.
|
|
func (m *MockRPCFactory) CreateLocalFrontendHTTPClient() (*FrontendHTTPClient, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateLocalFrontendHTTPClient")
|
|
ret0, _ := ret[0].(*FrontendHTTPClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateLocalFrontendHTTPClient indicates an expected call of CreateLocalFrontendHTTPClient.
|
|
func (mr *MockRPCFactoryMockRecorder) CreateLocalFrontendHTTPClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocalFrontendHTTPClient", reflect.TypeOf((*MockRPCFactory)(nil).CreateLocalFrontendHTTPClient))
|
|
}
|
|
|
|
// CreateMatchingGRPCConnection mocks base method.
|
|
func (m *MockRPCFactory) CreateMatchingGRPCConnection(rpcAddress string) *grpc.ClientConn {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateMatchingGRPCConnection", rpcAddress)
|
|
ret0, _ := ret[0].(*grpc.ClientConn)
|
|
return ret0
|
|
}
|
|
|
|
// CreateMatchingGRPCConnection indicates an expected call of CreateMatchingGRPCConnection.
|
|
func (mr *MockRPCFactoryMockRecorder) CreateMatchingGRPCConnection(rpcAddress any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchingGRPCConnection", reflect.TypeOf((*MockRPCFactory)(nil).CreateMatchingGRPCConnection), rpcAddress)
|
|
}
|
|
|
|
// CreateRemoteFrontendGRPCConnection mocks base method.
|
|
func (m *MockRPCFactory) CreateRemoteFrontendGRPCConnection(rpcAddress string) *grpc.ClientConn {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateRemoteFrontendGRPCConnection", rpcAddress)
|
|
ret0, _ := ret[0].(*grpc.ClientConn)
|
|
return ret0
|
|
}
|
|
|
|
// CreateRemoteFrontendGRPCConnection indicates an expected call of CreateRemoteFrontendGRPCConnection.
|
|
func (mr *MockRPCFactoryMockRecorder) CreateRemoteFrontendGRPCConnection(rpcAddress any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRemoteFrontendGRPCConnection", reflect.TypeOf((*MockRPCFactory)(nil).CreateRemoteFrontendGRPCConnection), rpcAddress)
|
|
}
|
|
|
|
// GetFrontendGRPCServerOptions mocks base method.
|
|
func (m *MockRPCFactory) GetFrontendGRPCServerOptions() ([]grpc.ServerOption, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetFrontendGRPCServerOptions")
|
|
ret0, _ := ret[0].([]grpc.ServerOption)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetFrontendGRPCServerOptions indicates an expected call of GetFrontendGRPCServerOptions.
|
|
func (mr *MockRPCFactoryMockRecorder) GetFrontendGRPCServerOptions() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFrontendGRPCServerOptions", reflect.TypeOf((*MockRPCFactory)(nil).GetFrontendGRPCServerOptions))
|
|
}
|
|
|
|
// GetGRPCListener mocks base method.
|
|
func (m *MockRPCFactory) GetGRPCListener() net.Listener {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetGRPCListener")
|
|
ret0, _ := ret[0].(net.Listener)
|
|
return ret0
|
|
}
|
|
|
|
// GetGRPCListener indicates an expected call of GetGRPCListener.
|
|
func (mr *MockRPCFactoryMockRecorder) GetGRPCListener() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGRPCListener", reflect.TypeOf((*MockRPCFactory)(nil).GetGRPCListener))
|
|
}
|
|
|
|
// GetInternodeGRPCServerOptions mocks base method.
|
|
func (m *MockRPCFactory) GetInternodeGRPCServerOptions() ([]grpc.ServerOption, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetInternodeGRPCServerOptions")
|
|
ret0, _ := ret[0].([]grpc.ServerOption)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetInternodeGRPCServerOptions indicates an expected call of GetInternodeGRPCServerOptions.
|
|
func (mr *MockRPCFactoryMockRecorder) GetInternodeGRPCServerOptions() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInternodeGRPCServerOptions", reflect.TypeOf((*MockRPCFactory)(nil).GetInternodeGRPCServerOptions))
|
|
}
|