signaller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollFile added in v0.2.0

func PollFile(ctx context.Context, wg *sync.WaitGroup, file File, interval int)

func Repeat added in v0.2.0

func Repeat(ctx context.Context, f func() error, b chan bool) error

func WatchFile added in v0.2.0

func WatchFile(ctx context.Context, wg *sync.WaitGroup, file File)

Types

type Config

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

func New

func New(i map[string]interface{}) (*Config, error)

func (*Config) Poll

func (c *Config) Poll(ctx context.Context, interval int) error

func (*Config) Watch

func (c *Config) Watch(ctx context.Context) error

type File added in v0.2.0

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

func GetFile added in v0.2.0

func GetFile(item interface{}) (*File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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