mocks

package
v0.15.10-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServerMock

type GrpcServerMock struct {
	proto.UnimplementedOrchestratorServer
	// contains filtered or unexported fields
}

func NewGrpcServer

func NewGrpcServer() *GrpcServerMock

func (*GrpcServerMock) Addr

func (s *GrpcServerMock) Addr() string

func (*GrpcServerMock) Connect

func (*GrpcServerMock) GetLastDataStoreConnectionResponse added in v0.15.4

func (s *GrpcServerMock) GetLastDataStoreConnectionResponse() Message[*proto.DataStoreConnectionTestResponse]

func (*GrpcServerMock) GetLastOTLPConnectionResponse added in v0.15.4

func (s *GrpcServerMock) GetLastOTLPConnectionResponse() Message[*proto.OTLPConnectionTestResponse]

func (*GrpcServerMock) GetLastPollingResponse

func (s *GrpcServerMock) GetLastPollingResponse() Message[*proto.PollingResponse]

func (*GrpcServerMock) GetLastTriggerResponse

func (s *GrpcServerMock) GetLastTriggerResponse() Message[*proto.TriggerResponse]

func (*GrpcServerMock) RegisterOTLPConnectionTestListener added in v0.15.4

func (*GrpcServerMock) RegisterPollerAgent

func (*GrpcServerMock) RegisterShutdownListener

func (*GrpcServerMock) RegisterStopRequestAgent added in v0.15.4

func (*GrpcServerMock) RegisterTriggerAgent

func (*GrpcServerMock) SendDataStoreConnectionTestRequest added in v0.15.4

func (s *GrpcServerMock) SendDataStoreConnectionTestRequest(ctx context.Context, request *proto.DataStoreConnectionTestRequest)

func (*GrpcServerMock) SendDataStoreConnectionTestResult added in v0.15.4

func (s *GrpcServerMock) SendDataStoreConnectionTestResult(ctx context.Context, result *proto.DataStoreConnectionTestResponse) (*proto.Empty, error)

func (*GrpcServerMock) SendOTLPConnectionTestRequest added in v0.15.4

func (s *GrpcServerMock) SendOTLPConnectionTestRequest(ctx context.Context, request *proto.OTLPConnectionTestRequest)

func (*GrpcServerMock) SendOTLPConnectionTestResult added in v0.15.4

func (s *GrpcServerMock) SendOTLPConnectionTestResult(ctx context.Context, result *proto.OTLPConnectionTestResponse) (*proto.Empty, error)

func (*GrpcServerMock) SendPolledSpans

func (s *GrpcServerMock) SendPolledSpans(ctx context.Context, result *proto.PollingResponse) (*proto.Empty, error)

func (*GrpcServerMock) SendPollingRequest

func (s *GrpcServerMock) SendPollingRequest(ctx context.Context, request *proto.PollingRequest)

func (*GrpcServerMock) SendTriggerRequest

func (s *GrpcServerMock) SendTriggerRequest(ctx context.Context, request *proto.TriggerRequest)

func (*GrpcServerMock) SendTriggerResult

func (s *GrpcServerMock) SendTriggerResult(ctx context.Context, result *proto.TriggerResponse) (*proto.Empty, error)

func (*GrpcServerMock) Stop added in v0.14.7

func (s *GrpcServerMock) Stop()

func (*GrpcServerMock) TerminateConnection

func (s *GrpcServerMock) TerminateConnection(ctx context.Context, reason string)

type Message added in v0.15.7

type Message[T any] struct {
	Context context.Context
	Data    T
}

Jump to

Keyboard shortcuts

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