dbusmon

package
v0.0.0-...-f1a5d7b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBusMonitor

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

func New

func New(opts ...Opt) (ret *DBusMonitor, err error)

func (*DBusMonitor) Events

func (d *DBusMonitor) Events() <-chan types.CGroupEvents

func (*DBusMonitor) RunCGroupMonitor

func (d *DBusMonitor) RunCGroupMonitor(ctx context.Context) (err error)

type Opt

type Opt func(d *DBusMonitor) (ret *DBusMonitor, err error)

func WithChannel

func WithChannel(eventsChan chan types.CGroupEvents) Opt

func WithLogger

func WithLogger(log *zap.SugaredLogger) Opt

Jump to

Keyboard shortcuts

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