proxyService

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ObjectPath   = "/org/desktopspec/deepin/Proxy1"
	AMInterface  = "org.desktopspec.deepin.AMProxy1"
	DCCInterface = "org.desktopspec.deepin.DCCProxy1"
)

Variables

This section is empty.

Functions

func New

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

Types

type AMProxy1

type AMProxy1 interface {
	SetProxy(cgroupPath string, state types.CgroupEventType) (e *dbus.Error)
}

type DCCProxy1

type DCCProxy1 interface {
	Reload(config_json string) (e *dbus.Error)
}

type Opt

type Opt func(p *proxyService) (ret *proxyService, err error)

func WithBusNameChannel

func WithBusNameChannel(ch <-chan string) Opt

func WithContext

func WithContext(context context.Context) Opt

func WithDBusConnection

func WithDBusConnection(conn *dbus.Conn) Opt

func WithLogger

func WithLogger(log *zap.SugaredLogger) Opt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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