mocks

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) ChainID

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

ChainID provides a mock function with given fields:

func (*Config) DefaultHTTPTimeout

func (_m *Config) DefaultHTTPTimeout() models.Duration

DefaultHTTPTimeout provides a mock function with given fields:

func (*Config) Dev

func (_m *Config) Dev() bool

Dev provides a mock function with given fields:

func (*Config) FeatureOffchainReporting

func (_m *Config) FeatureOffchainReporting() bool

FeatureOffchainReporting provides a mock function with given fields:

func (*Config) OCRBlockchainTimeout

func (_m *Config) OCRBlockchainTimeout() time.Duration

OCRBlockchainTimeout provides a mock function with given fields:

func (*Config) OCRContractConfirmations

func (_m *Config) OCRContractConfirmations() uint16

OCRContractConfirmations provides a mock function with given fields:

func (*Config) OCRContractPollInterval

func (_m *Config) OCRContractPollInterval() time.Duration

OCRContractPollInterval provides a mock function with given fields:

func (*Config) OCRContractSubscribeInterval

func (_m *Config) OCRContractSubscribeInterval() time.Duration

OCRContractSubscribeInterval provides a mock function with given fields:

func (*Config) OCRContractTransmitterTransmitTimeout

func (_m *Config) OCRContractTransmitterTransmitTimeout() time.Duration

OCRContractTransmitterTransmitTimeout provides a mock function with given fields:

func (*Config) OCRDatabaseTimeout

func (_m *Config) OCRDatabaseTimeout() time.Duration

OCRDatabaseTimeout provides a mock function with given fields:

func (*Config) OCRObservationGracePeriod

func (_m *Config) OCRObservationGracePeriod() time.Duration

OCRObservationGracePeriod provides a mock function with given fields:

func (*Config) OCRObservationTimeout

func (_m *Config) OCRObservationTimeout() time.Duration

OCRObservationTimeout provides a mock function with given fields:

type ConnectionsManager added in v1.10.17

type ConnectionsManager struct {
	mock.Mock
}

ConnectionsManager is an autogenerated mock type for the ConnectionsManager type

func (*ConnectionsManager) Close added in v1.10.17

func (_m *ConnectionsManager) Close()

Close provides a mock function with given fields:

func (*ConnectionsManager) Connect added in v1.10.17

func (_m *ConnectionsManager) Connect(opts feeds.ConnectOpts)

Connect provides a mock function with given fields: opts

func (*ConnectionsManager) Disconnect added in v1.10.17

func (_m *ConnectionsManager) Disconnect(id int64) error

Disconnect provides a mock function with given fields: id

func (*ConnectionsManager) GetClient added in v1.10.17

func (_m *ConnectionsManager) GetClient(id int64) (proto.FeedsManagerClient, error)

GetClient provides a mock function with given fields: id

func (*ConnectionsManager) IsConnected added in v1.10.17

func (_m *ConnectionsManager) IsConnected(id int64) bool

IsConnected provides a mock function with given fields: id

type FeedsManagerClient

type FeedsManagerClient struct {
	mock.Mock
}

FeedsManagerClient is an autogenerated mock type for the FeedsManagerClient type

func (*FeedsManagerClient) ApprovedJob

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

func (*FeedsManagerClient) CancelledJob added in v1.10.17

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

func (*FeedsManagerClient) RejectedJob

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

func (*FeedsManagerClient) UpdateNode

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) ApproveJobProposal

func (_m *ORM) ApproveJobProposal(ctx context.Context, id int64, externalJobID uuid.UUID, status feeds.JobProposalStatus) error

ApproveJobProposal provides a mock function with given fields: ctx, id, externalJobID, status

func (*ORM) CancelJobProposal added in v1.10.17

func (_m *ORM) CancelJobProposal(ctx context.Context, id int64) error

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

func (*ORM) CountJobProposals

func (_m *ORM) CountJobProposals(ctx context.Context) (int64, error)

CountJobProposals provides a mock function with given fields: ctx

func (*ORM) CountManagers

func (_m *ORM) CountManagers(ctx context.Context) (int64, error)

CountManagers provides a mock function with given fields: ctx

func (*ORM) CreateJobProposal

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

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

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

func (*ORM) GetJobProposalByRemoteUUID added in v1.10.17

func (_m *ORM) GetJobProposalByRemoteUUID(ctx context.Context, _a1 uuid.UUID) (*feeds.JobProposal, error)

GetJobProposalByRemoteUUID provides a mock function with given fields: ctx, _a1

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) IsJobManaged added in v1.10.17

func (_m *ORM) IsJobManaged(ctx context.Context, jobID int64) (bool, error)

IsJobManaged provides a mock function with given fields: ctx, jobID

func (*ORM) ListJobProposals

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

func (*ORM) UpdateJobProposalSpec

func (_m *ORM) UpdateJobProposalSpec(ctx context.Context, id int64, spec string) error

UpdateJobProposalSpec provides a mock function with given fields: ctx, id, spec

func (*ORM) UpdateJobProposalStatus

func (_m *ORM) UpdateJobProposalStatus(ctx context.Context, id int64, status feeds.JobProposalStatus) error

UpdateJobProposalStatus provides a mock function with given fields: ctx, id, status

func (*ORM) UpdateManager added in v1.10.17

func (_m *ORM) UpdateManager(ctx context.Context, mgr feeds.FeedsManager) error

UpdateManager provides a mock function with given fields: ctx, mgr

func (*ORM) UpsertJobProposal added in v1.10.17

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

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

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) ApproveJobProposal

func (_m *Service) ApproveJobProposal(ctx context.Context, id int64) error

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

func (*Service) CancelJobProposal added in v1.10.17

func (_m *Service) CancelJobProposal(ctx context.Context, id int64) error

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

func (*Service) Close

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

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

CreateJobProposal provides a mock function with given fields: jp

func (*Service) GetJobProposal

func (_m *Service) GetJobProposal(id int64) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: id

func (*Service) GetManager

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

GetManager provides a mock function with given fields: id

func (*Service) IsJobManaged added in v1.10.17

func (_m *Service) IsJobManaged(ctx context.Context, jobID int64) (bool, error)

IsJobManaged provides a mock function with given fields: ctx, jobID

func (*Service) ListJobProposals

func (_m *Service) ListJobProposals() ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields:

func (*Service) ListManagers

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

ListManagers provides a mock function with given fields:

func (*Service) ProposeJob added in v1.10.17

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

ProposeJob provides a mock function with given fields: jp

func (*Service) RegisterManager

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

RegisterManager provides a mock function with given fields: ms

func (*Service) RejectJobProposal

func (_m *Service) RejectJobProposal(ctx context.Context, id int64) error

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

func (*Service) Start

func (_m *Service) Start() error

Start provides a mock function with given fields:

func (*Service) SyncNodeInfo

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

SyncNodeInfo provides a mock function with given fields: id

func (*Service) Unsafe_SetConnectionsManager added in v1.10.17

func (_m *Service) Unsafe_SetConnectionsManager(_a0 feeds.ConnectionsManager)

Unsafe_SetConnectionsManager provides a mock function with given fields: _a0

func (*Service) UpdateFeedsManager added in v1.10.17

func (_m *Service) UpdateFeedsManager(ctx context.Context, mgr feeds.FeedsManager) error

UpdateFeedsManager provides a mock function with given fields: ctx, mgr

func (*Service) UpdateJobProposalSpec

func (_m *Service) UpdateJobProposalSpec(ctx context.Context, id int64, spec string) error

UpdateJobProposalSpec provides a mock function with given fields: ctx, id, spec

Jump to

Keyboard shortcuts

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