mocks

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.10

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) ChainID added in v0.10.10

func (_m *Config) ChainID() *big.Int

ChainID provides a mock function with given fields:

type FeedsManagerClient added in v0.10.10

type FeedsManagerClient struct {
	mock.Mock
}

FeedsManagerClient is an autogenerated mock type for the FeedsManagerClient type

func (*FeedsManagerClient) ApprovedJob added in v0.10.10

ApprovedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) RejectedJob added in v0.10.10

RejectedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) UpdateNode added in v0.10.10

UpdateNode provides a mock function with given fields: ctx, in

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func (*ORM) CountJobProposals added in v0.10.9

func (_m *ORM) CountJobProposals() (int64, error)

CountJobProposals provides a mock function with given fields:

func (*ORM) CountManagers

func (_m *ORM) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*ORM) CreateJobProposal added in v0.10.9

func (_m *ORM) CreateJobProposal(ctx context.Context, jp *feeds.JobProposal) (int64, error)

CreateJobProposal provides a mock function with given fields: ctx, jp

func (*ORM) CreateManager

func (_m *ORM) CreateManager(ctx context.Context, ms *feeds.FeedsManager) (int64, error)

CreateManager provides a mock function with given fields: ctx, ms

func (*ORM) GetJobProposal added in v0.10.9

func (_m *ORM) GetJobProposal(ctx context.Context, id int64) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: ctx, id

func (*ORM) GetManager

func (_m *ORM) GetManager(ctx context.Context, id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: ctx, id

func (*ORM) ListJobProposals added in v0.10.9

func (_m *ORM) ListJobProposals(ctx context.Context) ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields: ctx

func (*ORM) ListManagers

func (_m *ORM) ListManagers(ctx context.Context) ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields: ctx

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Close added in v0.10.9

func (_m *Service) Close() error

Close provides a mock function with given fields:

func (*Service) CountManagers

func (_m *Service) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*Service) CreateJobProposal added in v0.10.9

func (_m *Service) CreateJobProposal(jp *feeds.JobProposal) (int64, error)

CreateJobProposal provides a mock function with given fields: jp

func (*Service) GetManager

func (_m *Service) GetManager(id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: id

func (*Service) ListManagers

func (_m *Service) ListManagers() ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields:

func (*Service) RegisterManager

func (_m *Service) RegisterManager(ms *feeds.FeedsManager) (int64, error)

RegisterManager provides a mock function with given fields: ms

func (*Service) Start added in v0.10.9

func (_m *Service) Start() error

Start provides a mock function with given fields:

func (*Service) SyncNodeInfo added in v0.10.10

func (_m *Service) SyncNodeInfo(id int64) error

SyncNodeInfo provides a mock function with given fields: id

Jump to

Keyboard shortcuts

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