model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INode

type INode interface {
	// Query data
	Query(ctx context.Context, params schema.NodeQueryParam, opts ...schema.NodeQueryOptions) (*schema.NodeQueryResult, error)
	// Query specified data
	Get(ctx context.Context, UUID string, opts ...schema.NodeQueryOptions) (*schema.Node, error)
	// Create data
	Create(ctx context.Context, item schema.Node) error
	// Update data
	Update(ctx context.Context, UUID string, item schema.Node) error
	// Delete data
	Delete(ctx context.Context, UUID string) error
}

INode - Node storage interface

type IPrimitive

type IPrimitive interface {
	// Query data
	Query(ctx context.Context, params schema.PrimitiveQueryParam, opts ...schema.PrimitiveQueryOptions) (*schema.PrimitiveQueryResult, error)
	// Query specified data
	Get(ctx context.Context, UUID string, opts ...schema.PrimitiveQueryOptions) (*schema.Primitive, error)
	// Create data
	Create(ctx context.Context, item schema.Primitive) error
	// Update data
	Update(ctx context.Context, UUID string, item schema.Primitive) error
	// Delete data
	Delete(ctx context.Context, UUID string) error
}

IPrimitive Primitive storage interface

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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