mock

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClientHandler

func RegisterClientHandler(stream protos.ControlPlane_ClientConnServer) error

func RegisterSamplerHandler

func RegisterSamplerHandler(stream protos.ControlPlane_SamplerConnServer) error

Types

type ClientHandler

type ClientHandler func(stream protos.ControlPlane_ClientConnServer) error

type ControlPlaneServer

type ControlPlaneServer struct {
	protos.UnimplementedControlPlaneServer
	// contains filtered or unexported fields
}

func NewControlPlaneServer

func NewControlPlaneServer(_ TestingT) *ControlPlaneServer

func (*ControlPlaneServer) Addr

func (s *ControlPlaneServer) Addr() string

func (*ControlPlaneServer) ClientConn

func (*ControlPlaneServer) SamplerConn

func (*ControlPlaneServer) SetClientHandlers

func (s *ControlPlaneServer) SetClientHandlers(handlers ...ClientHandler)

func (*ControlPlaneServer) SetSamplerHandlers

func (s *ControlPlaneServer) SetSamplerHandlers(handlers ...SamplerHandler)

func (*ControlPlaneServer) Start

func (s *ControlPlaneServer) Start(t TestingT)

func (*ControlPlaneServer) Stop

func (s *ControlPlaneServer) Stop()

type SamplerHandler

type SamplerHandler func(stream protos.ControlPlane_SamplerConnServer) error

type TestingT

type TestingT interface {
	Logf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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