consumer

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWatchingDir

func StartWatchingDir(ctx context.Context, dir string, resetDelay time.Duration, callback func(filePath string)) error

Types

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Put

func (q *Queue[T]) Put(v T)

func (*Queue[T]) Subscribe

func (q *Queue[T]) Subscribe(ctx context.Context, fn func(v T))

Jump to

Keyboard shortcuts

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