cashier

package
v0.0.0-...-dfdc05b Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) Get

func (c *Cache) Get(key string) (ret *CacheEntry)

func (*Cache) Set

func (c *Cache) Set(key string, value *CacheEntry) (set bool)

type CacheEntry

type CacheEntry struct {
	Key       string
	Operation string
	Input     string
	Output    string
	State     CacheState

	sync.Mutex
	// contains filtered or unexported fields
}

func NewCacheEntry

func NewCacheEntry(key, operation string) *CacheEntry

func (*CacheEntry) WaitInput

func (c *CacheEntry) WaitInput()

type CacheState

type CacheState int
const (
	NEW_ENTRY CacheState = iota
	UPLOADING
	UPLOADED
	PROCESSING
	PROCESSED
	DOWNLOADING
	DONE
)

Jump to

Keyboard shortcuts

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