itemfix

package
v0.4.8 Latest Latest
Warning

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

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

README

itemfix

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

Overview

Index

Package files

itemfix.go

func Add

func Add(context interface{}, db *db.DB, items []item.Item) error

Add inserts items for testing.

func Get

func Get() ([]item.Item, error)

Get loads item data based on item.json.

func GetData

func GetData(filename string) (map[string]interface{}, error)

GetData loads data based from data.json.

func Remove

func Remove(context interface{}, db *db.DB, pattern string) error

Remove removes items in Mongo that match a given pattern.


Generated by godoc2md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(context interface{}, db *db.DB, items []item.Item) error

Add inserts items for testing.

func Get

func Get() ([]item.Item, error)

Get loads item data based on item.json.

func GetData added in v0.4.1

func GetData(filename string) (map[string]interface{}, error)

GetData loads data based from data.json.

func Remove

func Remove(context interface{}, db *db.DB, pattern string) error

Remove removes items in Mongo that match a given pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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