udsserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.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 Server

type Server interface {
	AddDevice(dev string, fd int)
	Start()
}

Server is the interface defining the Unix domain socket server. Implementations of this interface are the main type of this UDSServer package.

type ServerFactory

type ServerFactory interface {
	CreateServer(deviceType, user string, timeout int, udsFuzz bool) (Server, string, error)
}

ServerFactory is the interface defining a factory that creates and returns Servers. Each device plugin poolManager will have its own ServerFactory and each time a UDSServer container is created the factory will create a Server to serve the associated Unix domain socket.

func NewFakeServerFactory

func NewFakeServerFactory() ServerFactory

NewFakeServerFactory returns a fake implementation of the ServerFactory interface.

func NewServerFactory

func NewServerFactory() ServerFactory

NewServerFactory returns an implementation of the ServerFactory interface.

Jump to

Keyboard shortcuts

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