cloudmock

package module
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogsTestServer

type LogsTestServer struct {

	// Endpoint where the gRPC server is listening
	Endpoint string
	// contains filtered or unexported fields
}

func NewLoggingTestServer

func NewLoggingTestServer() (*LogsTestServer, error)

func (*LogsTestServer) CreateWriteLogEntriesRequests

func (l *LogsTestServer) CreateWriteLogEntriesRequests() []*logpb.WriteLogEntriesRequest

func (*LogsTestServer) Serve

func (l *LogsTestServer) Serve()

func (*LogsTestServer) Shutdown

func (l *LogsTestServer) Shutdown()

func (*LogsTestServer) UserAgent added in v0.43.1

func (l *LogsTestServer) UserAgent() string

Pops out the UserAgent from the most recent CreateWriteLogEntries.

type MetricsTestServer

type MetricsTestServer struct {
	Endpoint string

	RetryCount int
	// contains filtered or unexported fields
}

func NewMetricTestServer

func NewMetricTestServer() (*MetricsTestServer, error)

func (*MetricsTestServer) CreateMetricDescriptorRequests

func (m *MetricsTestServer) CreateMetricDescriptorRequests() []*monitoringpb.CreateMetricDescriptorRequest

Pops out the CreateMetricDescriptorRequests which the test server has received so far.

func (*MetricsTestServer) CreateServiceTimeSeriesRequests

func (m *MetricsTestServer) CreateServiceTimeSeriesRequests() []*monitoringpb.CreateTimeSeriesRequest

Pops out the CreateServiceTimeSeriesRequests which the test server has received so far.

func (*MetricsTestServer) CreateTimeSeriesRequests

func (m *MetricsTestServer) CreateTimeSeriesRequests() []*monitoringpb.CreateTimeSeriesRequest

Pops out the CreateTimeSeriesRequests which the test server has received so far.

func (*MetricsTestServer) Serve

func (m *MetricsTestServer) Serve() error

func (*MetricsTestServer) Shutdown

func (m *MetricsTestServer) Shutdown()

func (*MetricsTestServer) UserAgent added in v0.43.1

func (m *MetricsTestServer) UserAgent() string

Pops out the UserAgent from the most recent CreateTimeSeriesRequests or CreateServiceTimeSeriesRequests.

type TraceServerOption

type TraceServerOption interface {
	// contains filtered or unexported methods
}

func WithDelay

func WithDelay(t time.Duration) TraceServerOption

WithDelay sets a delay on the test server before it responds.

func WithErrorResponse added in v0.35.0

func WithErrorResponse(err error) TraceServerOption

type TracesTestServer

type TracesTestServer struct {

	// Endpoint where the gRPC server is listening
	Endpoint string

	Retries int
	// contains filtered or unexported fields
}

func NewTracesTestServer

func NewTracesTestServer(opts ...TraceServerOption) (*TracesTestServer, error)

func (*TracesTestServer) CreateBatchWriteSpansRequests

func (t *TracesTestServer) CreateBatchWriteSpansRequests() []*tracepb.BatchWriteSpansRequest

func (*TracesTestServer) Serve

func (t *TracesTestServer) Serve()

func (*TracesTestServer) Shutdown

func (t *TracesTestServer) Shutdown()

func (*TracesTestServer) UserAgent added in v0.43.1

func (t *TracesTestServer) UserAgent() string

Pops out the UserAgent from the most recent BatchWriteSpans.

Jump to

Keyboard shortcuts

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