Documentation ¶
Index ¶
Constants ¶
View Source
const ( JsonExt = ".json" GobExt = ".gob" HtmlExt = ".html" XmlExt = ".xml" )
View Source
const ( CaseSensitive = iota FullMatch )
Variables ¶
This section is empty.
Functions ¶
func UnknownReduxAsset ¶ added in v0.3.38
Types ¶
type IndexVetter ¶ added in v0.3.38
type IndexVetter interface { VetIndexOnly(fix bool, tpw nod.TotalProgressWriter) ([]string, error) VetIndexMissing(fix bool, tpw nod.TotalProgressWriter) ([]string, error) }
func NewReduxVetter ¶ added in v0.4.3
func NewReduxVetter(dir string, assets ...string) (IndexVetter, error)
type KeyValues ¶ added in v0.3.2
type KeyValues interface { Has(key string) bool Get(key string) (io.ReadCloser, error) GetFromStorage(key string) (io.ReadCloser, error) Set(key string, data io.Reader) error Cut(key string) (bool, error) Keys() []string CreatedAfter(timestamp int64) []string ModifiedAfter(timestamp int64, strictlyModified bool) []string IsModifiedAfter(key string, timestamp int64) bool IndexCurrentModTime() (int64, error) CurrentModTime(key string) (int64, error) IndexRefresh() error IndexVetter }
type MatchOption ¶ added in v0.3.38
type MatchOption int
type ReadableRedux ¶ added in v0.3.38
type ReadableRedux interface { MustHave(assets ...string) error Keys(asset string) []string HasAsset(asset string) bool HasKey(asset, key string) bool HasValue(asset, key, val string) bool GetAllValues(asset, key string) ([]string, bool) GetFirstVal(asset, key string) (string, bool) GetLastVal(asset, key string) (string, bool) ModTime() (int64, error) RefreshReader() (ReadableRedux, error) MatchAsset(asset string, terms []string, scope []string, options ...MatchOption) []string Match(query map[string][]string, options ...MatchOption) []string Sort(ids []string, desc bool, sortBy ...string) ([]string, error) Export(w io.Writer, keys ...string) error }
func NewReduxReader ¶ added in v0.4.3
func NewReduxReader(dir string, assets ...string) (ReadableRedux, error)
func ReduxProxy ¶ added in v0.3.38
func ReduxProxy(idpv map[string]map[string][]string) ReadableRedux
type WriteableRedux ¶ added in v0.3.38
type WriteableRedux interface { ReadableRedux AddValues(asset, key string, values ...string) error BatchAddValues(asset string, keyValues map[string][]string) error ReplaceValues(asset, key string, values ...string) error BatchReplaceValues(asset string, keyValues map[string][]string) error CutValues(asset, key string, values ...string) error CutKeys(asset string, keys ...string) error BatchCutValues(asset string, keyValues map[string][]string) error RefreshWriter() (WriteableRedux, error) }
func NewReduxWriter ¶ added in v0.4.3
func NewReduxWriter(dir string, assets ...string) (WriteableRedux, error)
Click to show internal directories.
Click to hide internal directories.