mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
375 lines
16 KiB
Go
375 lines
16 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: nameservice/nameserviceclient/nameserviceclient.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source nameservice/nameserviceclient/nameserviceclient.go
|
|
//
|
|
// Package mock_nameserviceclient is a generated GoMock package.
|
|
package mock_nameserviceclient
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
app "github.com/anyproto/any-sync/app"
|
|
nameserviceproto "github.com/anyproto/any-sync/nameservice/nameserviceproto"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockAnyNsClientServiceBase is a mock of AnyNsClientServiceBase interface.
|
|
type MockAnyNsClientServiceBase struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAnyNsClientServiceBaseMockRecorder
|
|
}
|
|
|
|
// MockAnyNsClientServiceBaseMockRecorder is the mock recorder for MockAnyNsClientServiceBase.
|
|
type MockAnyNsClientServiceBaseMockRecorder struct {
|
|
mock *MockAnyNsClientServiceBase
|
|
}
|
|
|
|
// NewMockAnyNsClientServiceBase creates a new mock instance.
|
|
func NewMockAnyNsClientServiceBase(ctrl *gomock.Controller) *MockAnyNsClientServiceBase {
|
|
mock := &MockAnyNsClientServiceBase{ctrl: ctrl}
|
|
mock.recorder = &MockAnyNsClientServiceBaseMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAnyNsClientServiceBase) EXPECT() *MockAnyNsClientServiceBaseMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BatchGetNameByAddress mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) BatchGetNameByAddress(ctx context.Context, in *nameserviceproto.BatchNameByAddressRequest) (*nameserviceproto.BatchNameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchGetNameByAddress", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchGetNameByAddress indicates an expected call of BatchGetNameByAddress.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) BatchGetNameByAddress(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetNameByAddress", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).BatchGetNameByAddress), ctx, in)
|
|
}
|
|
|
|
// BatchGetNameByAnyId mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) BatchGetNameByAnyId(ctx context.Context, in *nameserviceproto.BatchNameByAnyIdRequest) (*nameserviceproto.BatchNameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchGetNameByAnyId", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchGetNameByAnyId indicates an expected call of BatchGetNameByAnyId.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) BatchGetNameByAnyId(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetNameByAnyId", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).BatchGetNameByAnyId), ctx, in)
|
|
}
|
|
|
|
// BatchIsNameAvailable mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) BatchIsNameAvailable(ctx context.Context, in *nameserviceproto.BatchNameAvailableRequest) (*nameserviceproto.BatchNameAvailableResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchIsNameAvailable", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameAvailableResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchIsNameAvailable indicates an expected call of BatchIsNameAvailable.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) BatchIsNameAvailable(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchIsNameAvailable", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).BatchIsNameAvailable), ctx, in)
|
|
}
|
|
|
|
// GetNameByAddress mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) GetNameByAddress(ctx context.Context, in *nameserviceproto.NameByAddressRequest) (*nameserviceproto.NameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNameByAddress", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetNameByAddress indicates an expected call of GetNameByAddress.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) GetNameByAddress(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNameByAddress", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).GetNameByAddress), ctx, in)
|
|
}
|
|
|
|
// GetNameByAnyId mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) GetNameByAnyId(ctx context.Context, in *nameserviceproto.NameByAnyIdRequest) (*nameserviceproto.NameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNameByAnyId", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetNameByAnyId indicates an expected call of GetNameByAnyId.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) GetNameByAnyId(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNameByAnyId", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).GetNameByAnyId), ctx, in)
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) Init(a *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", a)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) Init(a any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).Init), a)
|
|
}
|
|
|
|
// IsNameAvailable mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) IsNameAvailable(ctx context.Context, in *nameserviceproto.NameAvailableRequest) (*nameserviceproto.NameAvailableResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsNameAvailable", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameAvailableResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// IsNameAvailable indicates an expected call of IsNameAvailable.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) IsNameAvailable(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNameAvailable", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).IsNameAvailable), ctx, in)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockAnyNsClientServiceBase) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockAnyNsClientServiceBaseMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAnyNsClientServiceBase)(nil).Name))
|
|
}
|
|
|
|
// MockAnyNsClientService is a mock of AnyNsClientService interface.
|
|
type MockAnyNsClientService struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAnyNsClientServiceMockRecorder
|
|
}
|
|
|
|
// MockAnyNsClientServiceMockRecorder is the mock recorder for MockAnyNsClientService.
|
|
type MockAnyNsClientServiceMockRecorder struct {
|
|
mock *MockAnyNsClientService
|
|
}
|
|
|
|
// NewMockAnyNsClientService creates a new mock instance.
|
|
func NewMockAnyNsClientService(ctrl *gomock.Controller) *MockAnyNsClientService {
|
|
mock := &MockAnyNsClientService{ctrl: ctrl}
|
|
mock.recorder = &MockAnyNsClientServiceMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAnyNsClientService) EXPECT() *MockAnyNsClientServiceMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AdminFundUserAccount mocks base method.
|
|
func (m *MockAnyNsClientService) AdminFundUserAccount(ctx context.Context, in *nameserviceproto.AdminFundUserAccountRequestSigned) (*nameserviceproto.OperationResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AdminFundUserAccount", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.OperationResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AdminFundUserAccount indicates an expected call of AdminFundUserAccount.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) AdminFundUserAccount(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminFundUserAccount", reflect.TypeOf((*MockAnyNsClientService)(nil).AdminFundUserAccount), ctx, in)
|
|
}
|
|
|
|
// AdminRegisterName mocks base method.
|
|
func (m *MockAnyNsClientService) AdminRegisterName(ctx context.Context, in *nameserviceproto.NameRegisterRequestSigned) (*nameserviceproto.OperationResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AdminRegisterName", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.OperationResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AdminRegisterName indicates an expected call of AdminRegisterName.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) AdminRegisterName(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRegisterName", reflect.TypeOf((*MockAnyNsClientService)(nil).AdminRegisterName), ctx, in)
|
|
}
|
|
|
|
// BatchGetNameByAddress mocks base method.
|
|
func (m *MockAnyNsClientService) BatchGetNameByAddress(ctx context.Context, in *nameserviceproto.BatchNameByAddressRequest) (*nameserviceproto.BatchNameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchGetNameByAddress", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchGetNameByAddress indicates an expected call of BatchGetNameByAddress.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) BatchGetNameByAddress(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetNameByAddress", reflect.TypeOf((*MockAnyNsClientService)(nil).BatchGetNameByAddress), ctx, in)
|
|
}
|
|
|
|
// BatchGetNameByAnyId mocks base method.
|
|
func (m *MockAnyNsClientService) BatchGetNameByAnyId(ctx context.Context, in *nameserviceproto.BatchNameByAnyIdRequest) (*nameserviceproto.BatchNameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchGetNameByAnyId", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchGetNameByAnyId indicates an expected call of BatchGetNameByAnyId.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) BatchGetNameByAnyId(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetNameByAnyId", reflect.TypeOf((*MockAnyNsClientService)(nil).BatchGetNameByAnyId), ctx, in)
|
|
}
|
|
|
|
// BatchIsNameAvailable mocks base method.
|
|
func (m *MockAnyNsClientService) BatchIsNameAvailable(ctx context.Context, in *nameserviceproto.BatchNameAvailableRequest) (*nameserviceproto.BatchNameAvailableResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BatchIsNameAvailable", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.BatchNameAvailableResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BatchIsNameAvailable indicates an expected call of BatchIsNameAvailable.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) BatchIsNameAvailable(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchIsNameAvailable", reflect.TypeOf((*MockAnyNsClientService)(nil).BatchIsNameAvailable), ctx, in)
|
|
}
|
|
|
|
// CreateOperation mocks base method.
|
|
func (m *MockAnyNsClientService) CreateOperation(ctx context.Context, in *nameserviceproto.CreateUserOperationRequestSigned) (*nameserviceproto.OperationResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateOperation", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.OperationResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateOperation indicates an expected call of CreateOperation.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) CreateOperation(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOperation", reflect.TypeOf((*MockAnyNsClientService)(nil).CreateOperation), ctx, in)
|
|
}
|
|
|
|
// GetNameByAddress mocks base method.
|
|
func (m *MockAnyNsClientService) GetNameByAddress(ctx context.Context, in *nameserviceproto.NameByAddressRequest) (*nameserviceproto.NameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNameByAddress", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetNameByAddress indicates an expected call of GetNameByAddress.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) GetNameByAddress(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNameByAddress", reflect.TypeOf((*MockAnyNsClientService)(nil).GetNameByAddress), ctx, in)
|
|
}
|
|
|
|
// GetNameByAnyId mocks base method.
|
|
func (m *MockAnyNsClientService) GetNameByAnyId(ctx context.Context, in *nameserviceproto.NameByAnyIdRequest) (*nameserviceproto.NameByAddressResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetNameByAnyId", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameByAddressResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetNameByAnyId indicates an expected call of GetNameByAnyId.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) GetNameByAnyId(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNameByAnyId", reflect.TypeOf((*MockAnyNsClientService)(nil).GetNameByAnyId), ctx, in)
|
|
}
|
|
|
|
// GetOperation mocks base method.
|
|
func (m *MockAnyNsClientService) GetOperation(ctx context.Context, in *nameserviceproto.GetOperationStatusRequest) (*nameserviceproto.OperationResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOperation", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.OperationResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetOperation indicates an expected call of GetOperation.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) GetOperation(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockAnyNsClientService)(nil).GetOperation), ctx, in)
|
|
}
|
|
|
|
// GetUserAccount mocks base method.
|
|
func (m *MockAnyNsClientService) GetUserAccount(ctx context.Context, in *nameserviceproto.GetUserAccountRequest) (*nameserviceproto.UserAccount, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetUserAccount", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.UserAccount)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetUserAccount indicates an expected call of GetUserAccount.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) GetUserAccount(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAccount", reflect.TypeOf((*MockAnyNsClientService)(nil).GetUserAccount), ctx, in)
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockAnyNsClientService) Init(a *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", a)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) Init(a any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAnyNsClientService)(nil).Init), a)
|
|
}
|
|
|
|
// IsNameAvailable mocks base method.
|
|
func (m *MockAnyNsClientService) IsNameAvailable(ctx context.Context, in *nameserviceproto.NameAvailableRequest) (*nameserviceproto.NameAvailableResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsNameAvailable", ctx, in)
|
|
ret0, _ := ret[0].(*nameserviceproto.NameAvailableResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// IsNameAvailable indicates an expected call of IsNameAvailable.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) IsNameAvailable(ctx, in any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNameAvailable", reflect.TypeOf((*MockAnyNsClientService)(nil).IsNameAvailable), ctx, in)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockAnyNsClientService) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockAnyNsClientServiceMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAnyNsClientService)(nil).Name))
|
|
}
|