nginx

package
v0.0.0-...-f332753 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(name string) (bool, error)

Types

type CacheEntry

type CacheEntry struct {
	ID           string
	Filename     string
	Modification time.Time
	RemovedAt    time.Time
}

func Unmarshal

func Unmarshal(filename string) (CacheEntry, error)

type CacheWatcher

type CacheWatcher struct {
	Directory string
	Logger    *zap.Logger
	// contains filtered or unexported fields
}

func (*CacheWatcher) Added

func (cw *CacheWatcher) Added() <-chan string

func (*CacheWatcher) Keys

func (cw *CacheWatcher) Keys() (keys []string)

func (*CacheWatcher) Removed

func (cw *CacheWatcher) Removed() <-chan string

func (*CacheWatcher) Watch

func (cw *CacheWatcher) Watch(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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