conn

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the client to talk to the fanotifier.

func NewClient

func NewClient(r io.Reader, w io.Writer, servicePid int, timeout time.Duration) *Client

NewClient returns the client to talk to the fanotifier.

func (*Client) GetPath

func (nc *Client) GetPath() (string, error)

GetPath returns notified path from the fanotifier. This blocks until new path is notified from the service

func (*Client) Start

func (nc *Client) Start() error

Start lets the notirier start to monitor the filesystem.

type Service

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

Service is the service end of the fanotifier.

func NewService

func NewService(r io.Reader, w io.Writer, timeout time.Duration) *Service

NewService is the service end of the fanotifier.

func (*Service) SendFd

func (ns *Service) SendFd(fd int) error

SendFd send file descriptor to the client.

func (*Service) SendStarted

func (ns *Service) SendStarted() error

SendStarted tells client that the service has been started.

func (*Service) WaitStart

func (ns *Service) WaitStart() error

WaitStart waits "start" message from the client.

Jump to

Keyboard shortcuts

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