brokerservice

package
v0.0.0-...-9f10da5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package brokerservice is the dbus service implementation delegating its functional call to brokers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the handler exposing our broker methods on the system bus.

func New

func New(_ context.Context, serviceName string) (s *Service, err error)

New returns a new dbus service after exporting to the system bus our name.

func (Service) Addr

func (s Service) Addr() string

Addr returns the address of the service.

func (*Service) IsAuthenticated

func (s *Service) IsAuthenticated(sessionID, authenticationData string) (access, data string, dbusErr *dbus.Error)

IsAuthenticated is the method through which the broker and the daemon will communicate once dbusInterface.IsAuthenticated is called.

func (*Service) Serve

func (s *Service) Serve() error

Serve wait for the service.

func (*Service) Stop

func (s *Service) Stop() error

Stop stop the service and do all the necessary cleanup operation.

Jump to

Keyboard shortcuts

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