metricexporter

package
v0.0.0-...-b5acc33 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package mock_otelexporter is a generated GoMock package.

Index

Constants

View Source
const ClientAttributeName = "client"
View Source
const ServerAttributeName = "server"

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeMetric

type EdgeMetric interface {
	Record(ctx context.Context, from string, to string)
}

type MetricExporter

type MetricExporter struct {
	// contains filtered or unexported fields
}

func NewMetricExporter

func NewMetricExporter(ctx context.Context) (*MetricExporter, error)

func (*MetricExporter) NotifyIntents

func (o *MetricExporter) NotifyIntents(ctx context.Context, intents []intentsstore.TimestampedIntent)

type MockEdgeMetric

type MockEdgeMetric struct {
	// contains filtered or unexported fields
}

MockEdgeMetric is a mock of EdgeMetric interface.

func NewMockEdgeMetric

func NewMockEdgeMetric(ctrl *gomock.Controller) *MockEdgeMetric

NewMockEdgeMetric creates a new mock instance.

func (*MockEdgeMetric) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEdgeMetric) Record

func (m *MockEdgeMetric) Record(ctx context.Context, from, to string)

Record mocks base method.

type MockEdgeMetricMockRecorder

type MockEdgeMetricMockRecorder struct {
	// contains filtered or unexported fields
}

MockEdgeMetricMockRecorder is the mock recorder for MockEdgeMetric.

func (*MockEdgeMetricMockRecorder) Record

func (mr *MockEdgeMetricMockRecorder) Record(ctx, from, to interface{}) *gomock.Call

Record indicates an expected call of Record.

type OtelEdgeMetric

type OtelEdgeMetric struct {
	// contains filtered or unexported fields
}

func NewOtelEdgeMetric

func NewOtelEdgeMetric(ctx context.Context) (*OtelEdgeMetric, error)

func (*OtelEdgeMetric) Record

func (o *OtelEdgeMetric) Record(ctx context.Context, from string, to string)

Jump to

Keyboard shortcuts

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