Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Observer ¶
type Observer struct { // UnimplementedObserverServer is embedded for forward compatibility. observer.UnimplementedObserverServer // contains filtered or unexported fields }
Observer implement Hubble's ObserverServer
func New ¶
func New(log logrus.FieldLogger, options ...Option) (*Observer, error)
New create and return a new Observer that can be used as a Hubble Observer service.
func (*Observer) GetFlows ¶
func (s *Observer) GetFlows(req *observer.GetFlowsRequest, srv observer.Observer_GetFlowsServer) error
GetFlows implements ObserverServer for the Observer struct.
func (*Observer) ServerStatus ¶
func (s *Observer) ServerStatus(ctx context.Context, req *observer.ServerStatusRequest) (*observer.ServerStatusResponse, error)
ServerStatus implements ObserverServer for the Observer struct.
type Option ¶
Option customizes then configuration of the mock observer.
func WithRateAdjustment ¶
func WithSampleDir ¶
Click to show internal directories.
Click to hide internal directories.