stores

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseStore

func CloseStore()

CloseStore closes the DB connection

func DeleteData

func DeleteData(ctx context.Context, id string) error

DeleteData deletes data by id

func GetAllData

func GetAllData(ctx context.Context, data chan<- map[string]interface{},
	err chan<- error,
	done chan<- bool)

GetAllData retreaves all data in the collection

func GetData

func GetData(ctx context.Context, id string) (data map[string]interface{}, err error)

GetData retrieves saved sentiment request

func InitStore

func InitStore(ctx context.Context) error

InitStore returns configured store

func SaveData

func SaveData(ctx context.Context, id string, data map[string]interface{}) error

SaveData creates data or updates if exists with id

Types

This section is empty.

Jump to

Keyboard shortcuts

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