utils

package
v0.0.0-...-f5a2786 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunTask

type RunTask interface {
	AddTask()
	RunTask()
}

type T

type T struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewT

func NewT() *T

func (*T) AddTask

func (t *T) AddTask()

func (*T) DefaultF

func (t *T) DefaultF(ch chan struct{}) error

func (*T) RunTask

func (t *T) RunTask()

type Watch

type Watch struct {
	*fsnotify.Watcher
}

func NewWatch

func NewWatch() *Watch

func (*Watch) Watch

func (w *Watch) Watch(path string, t *T) error

Jump to

Keyboard shortcuts

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