cgoreceiver

package
v0.0.0-...-e368295 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cgo = "cgoreceiver"
)

Variables

This section is empty.

Functions

func If

func If(condition bool, trueVal, falseVal interface{}) interface{}

func NewCgoReceiver

func NewCgoReceiver(config interface{}, telemetry *component.TelemetryTools, analyzerManager *analyzerpackage.Manager) receiver.Receiver

Types

type CEventParamsForSubscribe

type CEventParamsForSubscribe C.struct_event_params_for_subscribe

type CKindlingEventForGo

type CKindlingEventForGo C.struct_kindling_event_t_for_go

type CgoReceiver

type CgoReceiver struct {
	// contains filtered or unexported fields
}

func (*CgoReceiver) ProfileModule

func (r *CgoReceiver) ProfileModule() (submodule string, start func() error, stop func() error)

func (*CgoReceiver) Shutdown

func (r *CgoReceiver) Shutdown() error

func (*CgoReceiver) Start

func (r *CgoReceiver) Start() error

func (*CgoReceiver) StartProfile

func (r *CgoReceiver) StartProfile() error

func (*CgoReceiver) StopProfile

func (r *CgoReceiver) StopProfile() error

type Config

type Config struct {
	SubscribeInfo     []SubEvent    `mapstructure:"subscribe"`
	ProcessFilterInfo ProcessFilter `mapstructure:"process_filter"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type ProcessFilter

type ProcessFilter struct {
	Comms []string `mapstructure:"comms"`
}

type SubEvent

type SubEvent struct {
	Category string            `mapstructure:"category"`
	Name     string            `mapstructure:"name"`
	Params   map[string]string `mapstructure:"params"`
}

Jump to

Keyboard shortcuts

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