store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseIterator

func CloseIterator(it io.Closer)

CloseIterator closes the given iterator, logging a warning if the operation fails.

func Open

func Open(provider storage.Provider, namespace string, tagGroups ...TagGroup) (storage.Store, error)

Open opens the store for the given namespace and creates the necessary indexes. As an optimization, this function uses vendor-specific APIs (for supported databases) in order to optimize performance.

Types

type TagGroup

type TagGroup []string

TagGroup defines a group of tags that may be used to create a compound index.

func NewTagGroup

func NewTagGroup(tags ...string) TagGroup

NewTagGroup is a convenience function that returns a TagGroup from the given set of tags.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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