Documentation ¶
Overview ¶
Package dbfunc contains EliasDB specific functions for the event condition action language (ECAL).
Index ¶
- Variables
- func NewGraphNodeFromECALMap(d map[interface{}]interface{}) data.Node
- type CommitTransFunc
- type FetchEdgeFunc
- type FetchNodeFunc
- type GraphQLFunc
- type NewRollingTransFunc
- type NewTransFunc
- type QueryFunc
- type RaiseGraphEventHandledFunc
- type RaiseWebEventHandledFunc
- type RemoveEdgeFunc
- type RemoveNodeFunc
- type StoreEdgeFunc
- type StoreNodeFunc
- type TraverseFunc
- type UpdateNodeFunc
Constants ¶
This section is empty.
Variables ¶
var ErrWebEventHandled = fmt.Errorf("Web event handled")
ErrWebEventHandled is a special error to signal that a web request was handled.
Functions ¶
func NewGraphNodeFromECALMap ¶
NewGraphNodeFromECALMap creates a new Node instance from a given map.
Types ¶
type CommitTransFunc ¶
CommitTransFunc commits an existing transaction for EliasDB.
func (*CommitTransFunc) DocString ¶
func (f *CommitTransFunc) DocString() (string, error)
DocString returns a descriptive string.
type FetchEdgeFunc ¶
FetchEdgeFunc fetches an edge in EliasDB.
func (*FetchEdgeFunc) DocString ¶
func (f *FetchEdgeFunc) DocString() (string, error)
DocString returns a descriptive string.
type FetchNodeFunc ¶
FetchNodeFunc fetches a node in EliasDB.
func (*FetchNodeFunc) DocString ¶
func (f *FetchNodeFunc) DocString() (string, error)
DocString returns a descriptive string.
type GraphQLFunc ¶
GraphQLFunc runs a GraphQL query.
func (*GraphQLFunc) DocString ¶
func (f *GraphQLFunc) DocString() (string, error)
DocString returns a descriptive string.
type NewRollingTransFunc ¶
NewRollingTransFunc creates a new rolling transaction for EliasDB. A rolling transaction commits after n entries.
func (*NewRollingTransFunc) DocString ¶
func (f *NewRollingTransFunc) DocString() (string, error)
DocString returns a descriptive string.
type NewTransFunc ¶
NewTransFunc creates a new transaction for EliasDB.
func (*NewTransFunc) DocString ¶
func (f *NewTransFunc) DocString() (string, error)
DocString returns a descriptive string.
type QueryFunc ¶
QueryFunc runs an EQL query.
type RaiseGraphEventHandledFunc ¶
type RaiseGraphEventHandledFunc struct { }
RaiseGraphEventHandledFunc returns the special graph.ErrEventHandled error which a sink, handling graph events, can return to notify the GraphManager that no further action is necessary.
func (*RaiseGraphEventHandledFunc) DocString ¶
func (f *RaiseGraphEventHandledFunc) DocString() (string, error)
DocString returns a descriptive string.
type RaiseWebEventHandledFunc ¶
type RaiseWebEventHandledFunc struct { }
RaiseWebEventHandledFunc returns a special error which a sink can return to notify the web API that a web request was handled.
func (*RaiseWebEventHandledFunc) DocString ¶
func (f *RaiseWebEventHandledFunc) DocString() (string, error)
DocString returns a descriptive string.
type RemoveEdgeFunc ¶
RemoveEdgeFunc removes an edge in EliasDB.
func (*RemoveEdgeFunc) DocString ¶
func (f *RemoveEdgeFunc) DocString() (string, error)
DocString returns a descriptive string.
type RemoveNodeFunc ¶
RemoveNodeFunc removes a node in EliasDB.
func (*RemoveNodeFunc) DocString ¶
func (f *RemoveNodeFunc) DocString() (string, error)
DocString returns a descriptive string.
type StoreEdgeFunc ¶
StoreEdgeFunc inserts or updates an edge in EliasDB.
func (*StoreEdgeFunc) DocString ¶
func (f *StoreEdgeFunc) DocString() (string, error)
DocString returns a descriptive string.
type StoreNodeFunc ¶
StoreNodeFunc inserts a node in EliasDB.
func (*StoreNodeFunc) DocString ¶
func (f *StoreNodeFunc) DocString() (string, error)
DocString returns a descriptive string.
type TraverseFunc ¶
TraverseFunc traverses an edge in EliasDB.
func (*TraverseFunc) DocString ¶
func (f *TraverseFunc) DocString() (string, error)
DocString returns a descriptive string.
type UpdateNodeFunc ¶
UpdateNodeFunc updates a node in EliasDB (only update the given values of the node).
func (*UpdateNodeFunc) DocString ¶
func (f *UpdateNodeFunc) DocString() (string, error)
DocString returns a descriptive string.