file

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TmpFileFolder  = "/tmp"
	TmpFilePreffix = "flow-cache-file"
	TmpFilePerm    = 0444
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFile

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

func New

func New(path string, ttl time.Duration) (*CacheFile, error)

func (*CacheFile) Consolidate

func (f *CacheFile) Consolidate(data []byte) error

func (*CacheFile) Invalidate

func (f *CacheFile) Invalidate() error

func (*CacheFile) IsValid

func (f *CacheFile) IsValid() (bool, error)

func (*CacheFile) Read

func (f *CacheFile) Read() ([]byte, error)

Jump to

Keyboard shortcuts

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