implement

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: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeModel model.INode
}

Node - Sample program

func NewNode

func NewNode(mNode model.INode) *Node

NewNode - Create a Node

func (*Node) Create

func (a *Node) Create(ctx context.Context, item schema.Node) (*schema.Node, error)

Create - Create Node data

func (*Node) Delete

func (a *Node) Delete(ctx context.Context, UUID string) error

Delete - Delete data

func (*Node) Get

func (a *Node) Get(ctx context.Context, UUID string, opts ...schema.NodeQueryOptions) (*schema.Node, error)

Get - Get specified data

func (*Node) Query

Query - Query data

func (*Node) Update

func (a *Node) Update(ctx context.Context, UUID string, item schema.Node) (*schema.Node, error)

Update - Update Node data

type Primitive

type Primitive struct {
	PrimitiveModel model.IPrimitive
}

Primitive - Sample program

func NewPrimitive

func NewPrimitive(mPrimitive model.IPrimitive) *Primitive

NewPrimitive - Create a Primitive

func (*Primitive) Create

func (a *Primitive) Create(ctx context.Context, item schema.Primitive) (*schema.Primitive, error)

Create - Create Primitive data

func (*Primitive) Delete

func (a *Primitive) Delete(ctx context.Context, UUID string) error

Delete - Delete data

func (*Primitive) Get

Get - Get specified data

func (*Primitive) Query

Query - Query data

func (*Primitive) Update

func (a *Primitive) Update(ctx context.Context, UUID string, item schema.Primitive) (*schema.Primitive, error)

Update - Update Primitive data

Jump to

Keyboard shortcuts

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