package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# README

sponge

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

Overview

Package sponge provides support for item importing.

Index

Package files

sponge.go

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

# Packages

No description provided by the author

# Functions

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