mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsRepository

type MetricsRepository struct {
	mock.Mock
}

MetricsRepository is an autogenerated mock type for the MetricsRepository type

func (*MetricsRepository) FindByID

func (_m *MetricsRepository) FindByID(ID string) (*models.Metrics, error)

FindByID provides a mock function with given fields: ID

func (*MetricsRepository) GetAll

func (_m *MetricsRepository) GetAll() (*[]models.Metrics, error)

GetAll provides a mock function with given fields:

func (*MetricsRepository) Save

func (_m *MetricsRepository) Save(metrics *models.Metrics) error

Save provides a mock function with given fields: metrics

type NodeRepository

type NodeRepository struct {
	mock.Mock
}

NodeRepository is an autogenerated mock type for the NodeRepository type

func (*NodeRepository) FindByID

func (_m *NodeRepository) FindByID(ID string) (*models.Node, error)

FindByID provides a mock function with given fields: ID

func (*NodeRepository) GetAll

func (_m *NodeRepository) GetAll() (*[]models.Node, error)

GetAll provides a mock function with given fields:

func (*NodeRepository) IsNodeWhitelisted

func (_m *NodeRepository) IsNodeWhitelisted(ID string) (bool, error)

IsNodeWhitelisted provides a mock function with given fields: ID

func (*NodeRepository) Save

func (_m *NodeRepository) Save(node *models.Node) error

Save provides a mock function with given fields: node

type PingRepository

type PingRepository struct {
	mock.Mock
}

PingRepository is an autogenerated mock type for the PingRepository type

func (*PingRepository) FindByNodeID

func (_m *PingRepository) FindByNodeID(nodeId string) (*models.Ping, error)

FindByNodeID provides a mock function with given fields: nodeId

func (*PingRepository) GetAll

func (_m *PingRepository) GetAll() (*[]models.Ping, error)

GetAll provides a mock function with given fields:

func (*PingRepository) Save

func (_m *PingRepository) Save(ping *models.Ping) error

Save provides a mock function with given fields: ping

Jump to

Keyboard shortcuts

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