mocks

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 7 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) GetLastPollingResponse

func (s *GrpcServerMock) GetLastPollingResponse() *proto.PollingResponse

func (*GrpcServerMock) GetLastTriggerResponse

func (s *GrpcServerMock) GetLastTriggerResponse() *proto.TriggerResponse

func (*GrpcServerMock) RegisterPollerAgent

func (*GrpcServerMock) RegisterShutdownListener

func (*GrpcServerMock) RegisterTriggerAgent

func (*GrpcServerMock) SendPolledSpans

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

func (*GrpcServerMock) SendPollingRequest

func (s *GrpcServerMock) SendPollingRequest(request *proto.PollingRequest)

func (*GrpcServerMock) SendTriggerRequest

func (s *GrpcServerMock) SendTriggerRequest(request *proto.TriggerRequest)

func (*GrpcServerMock) SendTriggerResult

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

func (*GrpcServerMock) TerminateConnection

func (s *GrpcServerMock) TerminateConnection(reason string)

Jump to

Keyboard shortcuts

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