mocks

package
v0.0.0-...-2119b44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Consumer

NewConsumer creates a new instance of Consumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Consumer) Close

func (_m *Consumer) Close()

Close provides a mock function with given fields:

func (*Consumer) IsClosed

func (_m *Consumer) IsClosed() bool

IsClosed provides a mock function with given fields:

func (*Consumer) Subscribe

func (_m *Consumer) Subscribe(queueName string, exchangeName string, exchangeType string, routingKeys []msgbus.RoutingKey, consumerName string, handlerFunc func(amqp.Delivery, chan<- bool)) error

Subscribe provides a mock function with given fields: queueName, exchangeName, exchangeType, routingKeys, consumerName, handlerFunc

func (*Consumer) SubscribeToQueue

func (_m *Consumer) SubscribeToQueue(queueName string, consumerName string, handlerFunc func(amqp.Delivery, chan<- bool)) error

SubscribeToQueue provides a mock function with given fields: queueName, consumerName, handlerFunc

func (*Consumer) SubscribeToServiceQueue

func (_m *Consumer) SubscribeToServiceQueue(serviceName string, exchangeName string, routingKeys []msgbus.RoutingKey, consumerId string, handlerFunc func(amqp.Delivery, chan<- bool)) error

SubscribeToServiceQueue provides a mock function with given fields: serviceName, exchangeName, routingKeys, consumerId, handlerFunc

func (*Consumer) SubscribeWithArgs

func (_m *Consumer) SubscribeWithArgs(queueName string, exchangeName string, exchangeType string, routingKeys []msgbus.RoutingKey, consumerName string, queueArgs map[string]interface{}, handlerFunc func(amqp.Delivery, chan<- bool)) error

SubscribeWithArgs provides a mock function with given fields: queueName, exchangeName, exchangeType, routingKeys, consumerName, queueArgs, handlerFunc

type Db

type Db struct {
	mock.Mock
}

Db is an autogenerated mock type for the Db type

func NewDb

func NewDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *Db

NewDb creates a new instance of Db. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Db) Connect

func (_m *Db) Connect() error

Connect provides a mock function with given fields:

func (*Db) ExecuteInTransaction

func (_m *Db) ExecuteInTransaction(dbOperation func(*gorm.DB) *gorm.DB, nestedFuncs ...func() error) error

ExecuteInTransaction provides a mock function with given fields: dbOperation, nestedFuncs

func (*Db) ExecuteInTransaction2

func (_m *Db) ExecuteInTransaction2(dbOperation func(*gorm.DB) *gorm.DB, nestedFuncs ...func(*gorm.DB) error) error

ExecuteInTransaction2 provides a mock function with given fields: dbOperation, nestedFuncs

func (*Db) GetGormDb

func (_m *Db) GetGormDb() *gorm.DB

GetGormDb provides a mock function with given fields:

func (*Db) Init

func (_m *Db) Init(model ...interface{}) error

Init provides a mock function with given fields: model

type DbConfig

type DbConfig struct {
	mock.Mock
}

DbConfig is an autogenerated mock type for the DbConfig type

func NewDbConfig

func NewDbConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *DbConfig

NewDbConfig creates a new instance of DbConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DbConfig) ChangeDbName

func (_m *DbConfig) ChangeDbName(name string) sql.DbConfig

ChangeDbName provides a mock function with given fields: name

func (*DbConfig) GetConnString

func (_m *DbConfig) GetConnString() string

GetConnString provides a mock function with given fields:

func (*DbConfig) GetDbName

func (_m *DbConfig) GetDbName() string

GetDbName provides a mock function with given fields:

type EventNotificationServiceClient

type EventNotificationServiceClient struct {
	mock.Mock
}

EventNotificationServiceClient is an autogenerated mock type for the EventNotificationServiceClient type

func NewEventNotificationServiceClient

func NewEventNotificationServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventNotificationServiceClient

NewEventNotificationServiceClient creates a new instance of EventNotificationServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventNotificationServiceClient) EventNotification

func (_m *EventNotificationServiceClient) EventNotification(ctx context.Context, in *events.Event, opts ...grpc.CallOption) (*events.EventResponse, error)

EventNotification provides a mock function with given fields: ctx, in, opts

type EventNotificationServiceServer

type EventNotificationServiceServer struct {
	mock.Mock
}

EventNotificationServiceServer is an autogenerated mock type for the EventNotificationServiceServer type

func NewEventNotificationServiceServer

func NewEventNotificationServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventNotificationServiceServer

NewEventNotificationServiceServer creates a new instance of EventNotificationServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventNotificationServiceServer) EventNotification

func (_m *EventNotificationServiceServer) EventNotification(_a0 context.Context, _a1 *events.Event) (*events.EventResponse, error)

EventNotification provides a mock function with given fields: _a0, _a1

type Generator

type Generator struct {
	mock.Mock
}

Generator is an autogenerated mock type for the Generator type

func NewGenerator

func NewGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Generator

NewGenerator creates a new instance of Generator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Generator) NewV1

func (_m *Generator) NewV1() uuid.UUID

NewV1 provides a mock function with given fields:

func (*Generator) NewV2

func (_m *Generator) NewV2(domain byte) uuid.UUID

NewV2 provides a mock function with given fields: domain

func (*Generator) NewV3

func (_m *Generator) NewV3(ns uuid.UUID, name string) uuid.UUID

NewV3 provides a mock function with given fields: ns, name

func (*Generator) NewV4

func (_m *Generator) NewV4() uuid.UUID

NewV4 provides a mock function with given fields:

func (*Generator) NewV5

func (_m *Generator) NewV5(ns uuid.UUID, name string) uuid.UUID

NewV5 provides a mock function with given fields: ns, name

type GitClient

type GitClient struct {
	mock.Mock
}

GitClient is an autogenerated mock type for the GitClient type

func NewGitClient

func NewGitClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitClient

NewGitClient creates a new instance of GitClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GitClient) BranchCheckout

func (_m *GitClient) BranchCheckout(branch string) error

BranchCheckout provides a mock function with given fields: branch

func (*GitClient) CloneGitRepo

func (_m *GitClient) CloneGitRepo() error

CloneGitRepo provides a mock function with given fields:

func (*GitClient) CreateTempDir

func (_m *GitClient) CreateTempDir() bool

CreateTempDir provides a mock function with given fields:

func (*GitClient) GetFilesPath

func (_m *GitClient) GetFilesPath(key string) ([]string, error)

GetFilesPath provides a mock function with given fields: key

func (*GitClient) ReadFileJSON

func (_m *GitClient) ReadFileJSON(path string) ([]byte, error)

ReadFileJSON provides a mock function with given fields: path

func (*GitClient) ReadFileYML

func (_m *GitClient) ReadFileYML(path string) ([]byte, error)

ReadFileYML provides a mock function with given fields: path

func (*GitClient) RemoveTempDir

func (_m *GitClient) RemoveTempDir() bool

RemoveTempDir provides a mock function with given fields:

func (*GitClient) SetupDir

func (_m *GitClient) SetupDir() bool

SetupDir provides a mock function with given fields:

type HealthCheckerInterface

type HealthCheckerInterface struct {
	mock.Mock
}

HealthCheckerInterface is an autogenerated mock type for the HealthCheckerInterface type

func NewHealthCheckerInterface

func NewHealthCheckerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthCheckerInterface

NewHealthCheckerInterface creates a new instance of HealthCheckerInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HealthCheckerInterface) Check

Check provides a mock function with given fields: ctx, request

func (*HealthCheckerInterface) Watch

Watch provides a mock function with given fields: request, server

type HealthClient

type HealthClient struct {
	mock.Mock
}

HealthClient is an autogenerated mock type for the HealthClient type

func NewHealthClient

func NewHealthClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthClient

NewHealthClient creates a new instance of HealthClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HealthClient) Check

Check provides a mock function with given fields: ctx, in, opts

func (*HealthClient) Watch

Watch provides a mock function with given fields: ctx, in, opts

type HealthServer

type HealthServer struct {
	mock.Mock
}

HealthServer is an autogenerated mock type for the HealthServer type

func NewHealthServer

func NewHealthServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthServer

NewHealthServer creates a new instance of HealthServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HealthServer) Check

Check provides a mock function with given fields: _a0, _a1

func (*HealthServer) Watch

Watch provides a mock function with given fields: _a0, _a1

type Health_WatchClient

type Health_WatchClient struct {
	mock.Mock
}

Health_WatchClient is an autogenerated mock type for the Health_WatchClient type

func NewHealth_WatchClient

func NewHealth_WatchClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Health_WatchClient

NewHealth_WatchClient creates a new instance of Health_WatchClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Health_WatchClient) CloseSend

func (_m *Health_WatchClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*Health_WatchClient) Context

func (_m *Health_WatchClient) Context() context.Context

Context provides a mock function with given fields:

func (*Health_WatchClient) Header

func (_m *Health_WatchClient) Header() (metadata.MD, error)

Header provides a mock function with given fields:

func (*Health_WatchClient) Recv

Recv provides a mock function with given fields:

func (*Health_WatchClient) RecvMsg

func (_m *Health_WatchClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Health_WatchClient) SendMsg

func (_m *Health_WatchClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Health_WatchClient) Trailer

func (_m *Health_WatchClient) Trailer() metadata.MD

Trailer provides a mock function with given fields:

type Health_WatchServer

type Health_WatchServer struct {
	mock.Mock
}

Health_WatchServer is an autogenerated mock type for the Health_WatchServer type

func NewHealth_WatchServer

func NewHealth_WatchServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Health_WatchServer

NewHealth_WatchServer creates a new instance of Health_WatchServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Health_WatchServer) Context

func (_m *Health_WatchServer) Context() context.Context

Context provides a mock function with given fields:

func (*Health_WatchServer) RecvMsg

func (_m *Health_WatchServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Health_WatchServer) Send

Send provides a mock function with given fields: _a0

func (*Health_WatchServer) SendHeader

func (_m *Health_WatchServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*Health_WatchServer) SendMsg

func (_m *Health_WatchServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Health_WatchServer) SetHeader

func (_m *Health_WatchServer) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*Health_WatchServer) SetTrailer

func (_m *Health_WatchServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type IMsgBus

type IMsgBus struct {
	mock.Mock
}

IMsgBus is an autogenerated mock type for the IMsgBus type

func NewIMsgBus

func NewIMsgBus(t interface {
	mock.TestingT
	Cleanup(func())
}) *IMsgBus

NewIMsgBus creates a new instance of IMsgBus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IMsgBus) Close

func (_m *IMsgBus) Close()

Close provides a mock function with given fields:

func (*IMsgBus) ConnectToBroker

func (_m *IMsgBus) ConnectToBroker(connectionString string)

ConnectToBroker provides a mock function with given fields: connectionString

func (*IMsgBus) Publish

func (_m *IMsgBus) Publish(body []byte, queueName string, exchangeName string, routingKey msgbus.RoutingKey, exchangeType string) error

Publish provides a mock function with given fields: body, queueName, exchangeName, routingKey, exchangeType

func (*IMsgBus) PublishOnQueue

func (_m *IMsgBus) PublishOnQueue(body []byte, queueName string, initQueue bool) error

PublishOnQueue provides a mock function with given fields: body, queueName, initQueue

func (*IMsgBus) Subscribe

func (_m *IMsgBus) Subscribe(queueName string, exchangeName string, exchangeType string, routingKeys []msgbus.RoutingKey, consumerName string, handlerFunc func(amqp.Delivery, chan<- bool)) error

Subscribe provides a mock function with given fields: queueName, exchangeName, exchangeType, routingKeys, consumerName, handlerFunc

func (*IMsgBus) SubscribeToQueue

func (_m *IMsgBus) SubscribeToQueue(queueName string, consumerName string, handlerFunc func(amqp.Delivery, chan<- bool)) error

SubscribeToQueue provides a mock function with given fields: queueName, consumerName, handlerFunc

type MailerClient

type MailerClient struct {
	mock.Mock
}

MailerClient is an autogenerated mock type for the MailerClient type

func NewMailerClient

func NewMailerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MailerClient

NewMailerClient creates a new instance of MailerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MailerClient) SendEmail

func (_m *MailerClient) SendEmail(body notification.SendEmailReq) error

SendEmail provides a mock function with given fields: body

type MsgBusServiceClient

type MsgBusServiceClient struct {
	mock.Mock
}

MsgBusServiceClient is an autogenerated mock type for the MsgBusServiceClient type

func NewMsgBusServiceClient

func NewMsgBusServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgBusServiceClient

NewMsgBusServiceClient creates a new instance of MsgBusServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MsgBusServiceClient) PublishRequest

func (_m *MsgBusServiceClient) PublishRequest(route string, msg protoreflect.ProtoMessage) error

PublishRequest provides a mock function with given fields: route, msg

func (*MsgBusServiceClient) Register

func (_m *MsgBusServiceClient) Register() error

Register provides a mock function with given fields:

func (*MsgBusServiceClient) Start

func (_m *MsgBusServiceClient) Start() error

Start provides a mock function with given fields:

func (*MsgBusServiceClient) Stop

func (_m *MsgBusServiceClient) Stop() error

Stop provides a mock function with given fields:

type MsgBusShovelProvider

type MsgBusShovelProvider struct {
	mock.Mock
}

MsgBusShovelProvider is an autogenerated mock type for the MsgBusShovelProvider type

func NewMsgBusShovelProvider

func NewMsgBusShovelProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgBusShovelProvider

NewMsgBusShovelProvider creates a new instance of MsgBusShovelProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MsgBusShovelProvider) AddShovel

func (_m *MsgBusShovelProvider) AddShovel(name string, s *msgbus.Shovel) error

AddShovel provides a mock function with given fields: name, s

func (*MsgBusShovelProvider) CreateShovel

func (_m *MsgBusShovelProvider) CreateShovel(name string, s *msgbus.Shovel) error

CreateShovel provides a mock function with given fields: name, s

func (*MsgBusShovelProvider) GetShovel

func (_m *MsgBusShovelProvider) GetShovel(name string) (*msgbus.Shovel, error)

GetShovel provides a mock function with given fields: name

func (*MsgBusShovelProvider) RemoveShovel

func (_m *MsgBusShovelProvider) RemoveShovel(name string) error

RemoveShovel provides a mock function with given fields: name

func (*MsgBusShovelProvider) RestartShovel

func (_m *MsgBusShovelProvider) RestartShovel(name string) error

RestartShovel provides a mock function with given fields: name

type MsgClientServiceClient

type MsgClientServiceClient struct {
	mock.Mock
}

MsgClientServiceClient is an autogenerated mock type for the MsgClientServiceClient type

func NewMsgClientServiceClient

func NewMsgClientServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgClientServiceClient

NewMsgClientServiceClient creates a new instance of MsgClientServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MsgClientServiceClient) CreateShovel

CreateShovel provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) PublishMsg

PublishMsg provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) RegisterService

RegisterService provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) RemoveShovel

RemoveShovel provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) StartMsgBusHandler

StartMsgBusHandler provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) StopMsgBusHandler

StopMsgBusHandler provides a mock function with given fields: ctx, in, opts

func (*MsgClientServiceClient) UnregisterService

UnregisterService provides a mock function with given fields: ctx, in, opts

type MsgClientServiceServer

type MsgClientServiceServer struct {
	mock.Mock
}

MsgClientServiceServer is an autogenerated mock type for the MsgClientServiceServer type

func NewMsgClientServiceServer

func NewMsgClientServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgClientServiceServer

NewMsgClientServiceServer creates a new instance of MsgClientServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MsgClientServiceServer) CreateShovel

CreateShovel provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) PublishMsg

PublishMsg provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) RegisterService

RegisterService provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) RemoveShovel

RemoveShovel provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) StartMsgBusHandler

StartMsgBusHandler provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) StopMsgBusHandler

StopMsgBusHandler provides a mock function with given fields: _a0, _a1

func (*MsgClientServiceServer) UnregisterService

UnregisterService provides a mock function with given fields: _a0, _a1

type NetworkClient

type NetworkClient struct {
	mock.Mock
}

NetworkClient is an autogenerated mock type for the NetworkClient type

func NewNetworkClient

func NewNetworkClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *NetworkClient

NewNetworkClient creates a new instance of NetworkClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NetworkClient) Add

Add provides a mock function with given fields: req

func (*NetworkClient) Get

func (_m *NetworkClient) Get(Id string) (*registry.NetworkInfo, error)

Get provides a mock function with given fields: Id

type NodeClient

type NodeClient struct {
	mock.Mock
}

NodeClient is an autogenerated mock type for the NodeClient type

func NewNodeClient

func NewNodeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeClient

NewNodeClient creates a new instance of NodeClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NodeClient) Add

Add provides a mock function with given fields: _a0

func (*NodeClient) AddToSite

func (_m *NodeClient) AddToSite(_a0 string, _a1 registry.AddToSiteRequest) error

AddToSite provides a mock function with given fields: _a0, _a1

func (*NodeClient) Attach

func (_m *NodeClient) Attach(_a0 string, _a1 registry.AttachNodesRequest) error

Attach provides a mock function with given fields: _a0, _a1

func (*NodeClient) Delete

func (_m *NodeClient) Delete(_a0 string) error

Delete provides a mock function with given fields: _a0

func (*NodeClient) Detach

func (_m *NodeClient) Detach(_a0 string) error

Detach provides a mock function with given fields: _a0

func (*NodeClient) Get

func (_m *NodeClient) Get(_a0 string) (*registry.NodeInfo, error)

Get provides a mock function with given fields: _a0

func (*NodeClient) RemoveFromSite

func (_m *NodeClient) RemoveFromSite(_a0 string) error

RemoveFromSite provides a mock function with given fields: _a0

type OperatorClient

type OperatorClient struct {
	mock.Mock
}

OperatorClient is an autogenerated mock type for the OperatorClient type

func NewOperatorClient

func NewOperatorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperatorClient

NewOperatorClient creates a new instance of OperatorClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OperatorClient) ActivateSim

func (_m *OperatorClient) ActivateSim(iccid string) error

ActivateSim provides a mock function with given fields: iccid

func (*OperatorClient) BindSim

func (_m *OperatorClient) BindSim(iccid string) (*operator.OperatorSimInfo, error)

BindSim provides a mock function with given fields: iccid

func (*OperatorClient) DeactivateSim

func (_m *OperatorClient) DeactivateSim(iccid string) error

DeactivateSim provides a mock function with given fields: iccid

func (*OperatorClient) GetSimInfo

func (_m *OperatorClient) GetSimInfo(iccid string) (*operator.OperatorSimInfo, error)

GetSimInfo provides a mock function with given fields: iccid

func (*OperatorClient) GetUsages

func (_m *OperatorClient) GetUsages(iccid string, cdrType string, from string, to string, region string) (map[string]interface{}, map[string]interface{}, error)

GetUsages provides a mock function with given fields: iccid, cdrType, from, to, region

func (*OperatorClient) TerminateSim

func (_m *OperatorClient) TerminateSim(iccid string) error

TerminateSim provides a mock function with given fields: iccid

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Option) Execute

func (_m *Option) Execute(_a0 *client.Resty)

Execute provides a mock function with given fields: _a0

type OrgClient

type OrgClient struct {
	mock.Mock
}

OrgClient is an autogenerated mock type for the OrgClient type

func NewOrgClient

func NewOrgClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgClient

NewOrgClient creates a new instance of OrgClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrgClient) AddUser

func (_m *OrgClient) AddUser(orgId string, userId string) error

AddUser provides a mock function with given fields: orgId, userId

func (*OrgClient) Get

func (_m *OrgClient) Get(name string) (*nucleus.OrgInfo, error)

Get provides a mock function with given fields: name

func (*OrgClient) RemoveUser

func (_m *OrgClient) RemoveUser(orgId string, userId string) error

RemoveUser provides a mock function with given fields: orgId, userId

type PackageClient

type PackageClient struct {
	mock.Mock
}

PackageClient is an autogenerated mock type for the PackageClient type

func NewPackageClient

func NewPackageClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *PackageClient

NewPackageClient creates a new instance of PackageClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PackageClient) Add

Add provides a mock function with given fields: req

func (*PackageClient) Get

func (_m *PackageClient) Get(Id string) (*dataplan.PackageInfo, error)

Get provides a mock function with given fields: Id

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Publisher) Close

func (_m *Publisher) Close()

Close provides a mock function with given fields:

func (*Publisher) DeclareQueue

func (_m *Publisher) DeclareQueue(queueName string, durable bool) (*amqp.Queue, error)

DeclareQueue provides a mock function with given fields: queueName, durable

func (*Publisher) IsClosed

func (_m *Publisher) IsClosed() bool

IsClosed provides a mock function with given fields:

func (*Publisher) Publish

func (_m *Publisher) Publish(body []byte, queueName string, exchangeName string, routingKey msgbus.RoutingKey, exchangeType string) error

Publish provides a mock function with given fields: body, queueName, exchangeName, routingKey, exchangeType

func (*Publisher) PublishOnExchange

func (_m *Publisher) PublishOnExchange(exchange string, routingKey string, body interface{}) error

PublishOnExchange provides a mock function with given fields: exchange, routingKey, body

func (*Publisher) PublishOnQueue

func (_m *Publisher) PublishOnQueue(msg []byte, queueName string, initQueue bool) error

PublishOnQueue provides a mock function with given fields: msg, queueName, initQueue

type QPub

type QPub struct {
	mock.Mock
}

QPub is an autogenerated mock type for the QPub type

func NewQPub

func NewQPub(t interface {
	mock.TestingT
	Cleanup(func())
}) *QPub

NewQPub creates a new instance of QPub. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QPub) Close

func (_m *QPub) Close() error

Close provides a mock function with given fields:

func (*QPub) Publish

func (_m *QPub) Publish(payload interface{}, routingKey string) error

Publish provides a mock function with given fields: payload, routingKey

func (*QPub) PublishProto

func (_m *QPub) PublishProto(payload protoreflect.ProtoMessage, routingKey string) error

PublishProto provides a mock function with given fields: payload, routingKey

func (*QPub) PublishToQueue

func (_m *QPub) PublishToQueue(queueName string, payload interface{}) error

PublishToQueue provides a mock function with given fields: queueName, payload

type SimClient

type SimClient struct {
	mock.Mock
}

SimClient is an autogenerated mock type for the SimClient type

func NewSimClient

func NewSimClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SimClient

NewSimClient creates a new instance of SimClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SimClient) Add

Add provides a mock function with given fields: req

func (*SimClient) Get

func (_m *SimClient) Get(Id string) (*subscriber.SimInfo, error)

Get provides a mock function with given fields: Id

type SubscriberClient

type SubscriberClient struct {
	mock.Mock
}

SubscriberClient is an autogenerated mock type for the SubscriberClient type

func NewSubscriberClient

func NewSubscriberClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriberClient

NewSubscriberClient creates a new instance of SubscriberClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SubscriberClient) Add

Add provides a mock function with given fields: req

func (*SubscriberClient) Get

Get provides a mock function with given fields: Id

type UnsafeEventNotificationServiceServer

type UnsafeEventNotificationServiceServer struct {
	mock.Mock
}

UnsafeEventNotificationServiceServer is an autogenerated mock type for the UnsafeEventNotificationServiceServer type

func NewUnsafeEventNotificationServiceServer

func NewUnsafeEventNotificationServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnsafeEventNotificationServiceServer

NewUnsafeEventNotificationServiceServer creates a new instance of UnsafeEventNotificationServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

type UnsafeHealthServer

type UnsafeHealthServer struct {
	mock.Mock
}

UnsafeHealthServer is an autogenerated mock type for the UnsafeHealthServer type

func NewUnsafeHealthServer

func NewUnsafeHealthServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnsafeHealthServer

NewUnsafeHealthServer creates a new instance of UnsafeHealthServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

type UnsafeMsgClientServiceServer

type UnsafeMsgClientServiceServer struct {
	mock.Mock
}

UnsafeMsgClientServiceServer is an autogenerated mock type for the UnsafeMsgClientServiceServer type

func NewUnsafeMsgClientServiceServer

func NewUnsafeMsgClientServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnsafeMsgClientServiceServer

NewUnsafeMsgClientServiceServer creates a new instance of UnsafeMsgClientServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

type UserClient

type UserClient struct {
	mock.Mock
}

UserClient is an autogenerated mock type for the UserClient type

func NewUserClient

func NewUserClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserClient

NewUserClient creates a new instance of UserClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UserClient) GetByEmail

func (_m *UserClient) GetByEmail(email string) (*nucleus.UserInfo, error)

GetByEmail provides a mock function with given fields: email

func (*UserClient) GetById

func (_m *UserClient) GetById(userId string) (*nucleus.UserInfo, error)

GetById provides a mock function with given fields: userId

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL