fseventsrc

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

Variables

View Source
var ErrNotFound = errors.New("not found")
View Source
var EventTypes = []string{"create", "write", "remove", "rename", "chmod"}

Functions

This section is empty.

Types

type Config

type Config struct {
	EventSourceID apieventsrc.EventSourceID `envconfig:"EVENT_SOURCE_ID" json:"event_source_id"`
}

type FSEventSource

type FSEventSource struct {
	Config       Config
	L            L.Nullable
	Events       *events.Events
	EventSources eventsrcsstore.Store
	// contains filtered or unexported fields
}

NOTE: this is not built for a large number of bindings. TODO: should it be?

func (*FSEventSource) Add

func (s *FSEventSource) Add(
	ctx context.Context,
	pid apiproject.ProjectID,
	name string,
	path string,
	mask fsnotify.Op,
) error

func (*FSEventSource) Remove

func (s *FSEventSource) Remove(
	ctx context.Context,
	pid apiproject.ProjectID,
	name string,
	path string,
) error

func (*FSEventSource) Start

func (s *FSEventSource) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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