Documentation ¶
Index ¶
- type MockBackend
- type MockMetricsServices
- func (instance *MockMetricsServices) AddNodeMetrics(nodeID string, payload *string) (*model.MetricOne, error)
- func (instance *MockMetricsServices) GetFullMetricOne(network string, nodeID string) (*model.MetricOne, error)
- func (instance *MockMetricsServices) GetMetricOne(network string, nodeID string, startPeriod int, endPeriod int) (*model.MetricOne, error)
- func (instance *MockMetricsServices) GetMetricOneOutput(network string, nodeID string) (*model.MetricOneOutput, error)
- func (instance *MockMetricsServices) GetMetricOnePaginator(network string, nodeID string, first int, last *int) (*model.MetricOneInfo, error)
- func (instance *MockMetricsServices) GetNode(network string, nodeID string) (*model.NodeMetadata, error)
- func (instance *MockMetricsServices) GetNodes(network string) ([]*model.NodeMetadata, error)
- func (instance *MockMetricsServices) InitMetricOne(nodeID string, payload *string, signature string) (*model.MetricOne, error)
- func (instance *MockMetricsServices) UpdateMetricOne(nodeID string, payload *string, signature string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetricsServices ¶
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 (*MockMetricsServices) UpdateMetricOne ¶
func (instance *MockMetricsServices) UpdateMetricOne(nodeID string, payload *string, signature string) error
Click to show internal directories.
Click to hide internal directories.