mock

package
v0.0.1-rc8 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: GPL-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 MockBackend

type MockBackend struct{}

func (*MockBackend) VerifyMessage

func (instance *MockBackend) VerifyMessage(message *string, signature *string, pubkey *string) (bool, error)

type MockMetricsServices

type MockMetricsServices struct {
	mock.Mock
}

func (*MockMetricsServices) AddNodeMetrics

func (instance *MockMetricsServices) AddNodeMetrics(nodeID string, payload *string) (*model.MetricOne, error)

FIXME: implementing integration test

func (*MockMetricsServices) GetFullMetricOne

func (instance *MockMetricsServices) GetFullMetricOne(network string, nodeID string) (*model.MetricOne, error)

Get the metric one of one node and add a filtering option by period

func (*MockMetricsServices) GetMetricOne

func (instance *MockMetricsServices) GetMetricOne(network string, nodeID string, startPeriod int, endPeriod int) (*model.MetricOne, error)

Get the metric one of one node and add a filtering option by period

func (*MockMetricsServices) GetMetricOneOutput

func (instance *MockMetricsServices) GetMetricOneOutput(network string, nodeID string) (*model.MetricOneOutput, error)

func (*MockMetricsServices) GetMetricOnePaginator

func (instance *MockMetricsServices) GetMetricOnePaginator(network string, nodeID string, first int, last *int) (*model.MetricOneInfo, error)

FIXME: implementing integration test

func (*MockMetricsServices) GetNode

func (instance *MockMetricsServices) GetNode(network string, nodeID string) (*model.NodeMetadata, error)

func (*MockMetricsServices) GetNodes

func (instance *MockMetricsServices) GetNodes(network string) ([]*model.NodeMetadata, error)

Return all the node information that are pushing the data.

func (*MockMetricsServices) InitMetricOne

func (instance *MockMetricsServices) InitMetricOne(nodeID string, payload *string, signature string) (*model.MetricOne, error)

func (*MockMetricsServices) UpdateMetricOne

func (instance *MockMetricsServices) UpdateMetricOne(nodeID string, payload *string, signature string) error

Jump to

Keyboard shortcuts

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