sponge

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

sponge

import "github.com/coralproject/shelf/internal/sponge"

Package sponge provides support for item importing.

func Import

func Import(context interface{}, db *db.DB, graph *cayley.Handle, itm *item.Item) error

Import imports an item into the items collections and into the graph database.

func Remove

func Remove(context interface{}, db *db.DB, graph *cayley.Handle, itemID string) error

Remove removes an item into the items collection and remove any corresponding quads from the graph database.


Generated by godoc2md

Documentation

Overview

Package sponge provides support for item importing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(context interface{}, db *db.DB, graph *cayley.Handle, itm *item.Item) error

Import imports an item into the items collections and into the graph database.

func Remove

func Remove(context interface{}, db *db.DB, graph *cayley.Handle, itemID string) error

Remove removes an item into the items collection and remove any corresponding quads from the graph database.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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