jsonstore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store to access a JSONStore

func NewService

func NewService(orgName string, store string, conn grpc.ClientConnInterface) *Store

func (*Store) Delete

func (c *Store) Delete(ctx context.Context, itemPath string) (bool, error)

Delete an item in the json store. returns true if the item was deleted, otherwise false.

func (*Store) ExecuteQuery

func (c *Store) ExecuteQuery(ctx context.Context, queryName string, params map[string]interface{}, out value.ValueOut) error

ExecuteQuery executes a named query

func (*Store) Get

func (c *Store) Get(ctx context.Context, itemPath string, out value.ValueOut) error

Get gets the item in the json store

func (*Store) ItemExists

func (c *Store) ItemExists(ctx context.Context, itemPath string) (bool, error)

ItemExists tests if an item exists in the store

func (*Store) Put

func (c *Store) Put(ctx context.Context, itemPath string, data value.Value) error

Put puts the item in the json store

func (*Store) Upsert

func (c *Store) Upsert(ctx context.Context, itemPath string, data value.Value) error

Upsert inserts or updates an item

func (*Store) UpsertQuery

func (c *Store) UpsertQuery(ctx context.Context, queryName string, queryText string) error

UpsertQuery creates or updates a named query

Jump to

Keyboard shortcuts

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