Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinedSource ¶
type CombinedSource struct {
// contains filtered or unexported fields
}
func Combine ¶
func Combine(srcs ...MockedSource) *CombinedSource
func (*CombinedSource) Duplicate ¶
func (cs *CombinedSource) Duplicate() MockedSource
func (*CombinedSource) Flows ¶
func (cs *CombinedSource) Flows() FlowsChannel
func (*CombinedSource) Namespaces ¶
func (cs *CombinedSource) Namespaces() NSEventChannel
func (*CombinedSource) Run ¶
func (cs *CombinedSource) Run(ctx context.Context)
func (*CombinedSource) Stop ¶
func (cs *CombinedSource) Stop()
type FlowsChannel ¶
type LogFileSource ¶
type LogFileSource struct {
// contains filtered or unexported fields
}
func LogFile ¶
func LogFile( lf *log_file.LogFile, log logrus.FieldLogger, opts LogFileSourceOpts, ) *LogFileSource
func (*LogFileSource) Duplicate ¶
func (lfs *LogFileSource) Duplicate() MockedSource
func (*LogFileSource) Flows ¶
func (lfs *LogFileSource) Flows() FlowsChannel
func (*LogFileSource) Namespaces ¶
func (es *LogFileSource) Namespaces() NSEventChannel
func (*LogFileSource) Run ¶
func (lfs *LogFileSource) Run(ctx context.Context)
type LogFileSourceOpts ¶
type LogFileSourceOpts struct { FlowsRateLimit rate_limiter.RateLimit DebugHandler func(int, *events_log_file.EventEntry) }
type MockedSource ¶
type MockedSource interface { Namespaces() NSEventChannel Flows() FlowsChannel Run(context.Context) Stop() Stopped() chan struct{} // NOTE: The thing is that we would like to use the same data from source // for multiple clients/streams, this method is attempt to simulate that // broadcast behavior Duplicate() MockedSource }
type NSEventChannel ¶
type NamespaceSource ¶
type NamespaceSource struct {
// contains filtered or unexported fields
}
func Namespaces ¶
func Namespaces(initial []*ns_common.NSEvent) *NamespaceSource
func (*NamespaceSource) Duplicate ¶
func (nss *NamespaceSource) Duplicate() MockedSource
func (*NamespaceSource) Flows ¶
func (es *NamespaceSource) Flows() FlowsChannel
func (*NamespaceSource) Namespaces ¶
func (nss *NamespaceSource) Namespaces() NSEventChannel
func (*NamespaceSource) Run ¶
func (nss *NamespaceSource) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.