factory

package
v0.0.0-...-36277ca Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, pool *data.Pool, param ebpf.PreParam)

func Register

func Register(mm monitor.Builder)

Types

type DefaultMmFactory

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

func NewDefaultMmFactory

func NewDefaultMmFactory() *DefaultMmFactory

func (*DefaultMmFactory) Load

func (factory *DefaultMmFactory) Load(ctx context.Context, pool *data.Pool, param ebpf.PreParam)

func (*DefaultMmFactory) Register

func (factory *DefaultMmFactory) Register(mm monitor.Builder)

type MonitorModuleFactory

type MonitorModuleFactory interface {
	// 注册模块
	Register(mm monitor.Builder)

	// 加载模块
	Load(context context.Context, pool *data.Pool, param ebpf.PreParam)
}

Jump to

Keyboard shortcuts

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