credwatcher

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service watch the event of file.

func NewService

func NewService(path string) *Service

NewService create a new watcher.

func (*Service) Watch

func (s *Service) Watch(ctx context.Context, ch chan<- fsnotify.Event)

Watch send the event when the file has changed until the context is closed.

Jump to

Keyboard shortcuts

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