v1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 0 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 {
	V1, V2     interface{}
	V3         []interface{}
	B          []byte
	E          error
	C1, C2, C3 int
	Keys       []string
}

Cache for easily sharing state between map operations and methods V{1,2} are common interface{} placeholders, C{1,2,3} are counters used for condition, while []Keys is used by path discovery methods to keep track and derive the right path.

func NewCacheFactory

func NewCacheFactory() Cache

NewCacheFactory for creating a new Cache

func (*Cache) AddKey

func (c *Cache) AddKey(k string)

AddKey for appending a new Key to cache

func (*Cache) Clear

func (c *Cache) Clear()

Clear for clearing the cache and setting all content to nil

func (*Cache) DropKeys

func (c *Cache) DropKeys()

DropKeys removes all keys from the list

func (*Cache) DropLastKey

func (c *Cache) DropLastKey()

DropLastKey removes the last key added from the list

func (*Cache) GetError

func (c *Cache) GetError() error

GetError returns cache error field

func (*Cache) GetKeys

func (c *Cache) GetKeys() []string

GetKeys returns Cache.Keys

Jump to

Keyboard shortcuts

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