store

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package store provides an API into the DB GoCore Store operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreController

type StoreController struct{}

StoreController is an api controller for interacting with the GoCore Data Store.

func (*StoreController) Add

func (*StoreController) Add(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Add creates a new collection object to the collection

func (*StoreController) Append

func (*StoreController) Append(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Append adds a new row object to a collection path

func (*StoreController) Get

func (sc *StoreController) Get(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Get returns an entity from a collection store.

func (*StoreController) GetByFilter

func (*StoreController) GetByFilter(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

GetByFilter returns an array of entities from a collection store.

func (*StoreController) GetByPath

func (sc *StoreController) GetByPath(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

GetByPath returns an entity field value from a collection store.

func (*StoreController) Publish

func (sc *StoreController) Publish(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Publish will fetch the store record and publish to all subscribers.

func (*StoreController) Remove

func (*StoreController) Remove(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Remove removes the document from the collection.

func (*StoreController) Set

func (sc *StoreController) Set(context session_functions.RequestContext, state string, respond session_functions.ServerResponse)

Set sets an entity field in the collection store.

Jump to

Keyboard shortcuts

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