wirefix

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: 9 Imported by: 0

README

wirefix

import "github.com/coralproject/shelf/internal/wire/wirefix"

Overview

Index

Package files

wirefix.go

func Add

func Add(context interface{}, db *db.DB, items []item.Item, rels []relationship.Relationship, views []view.View, patterns []pattern.Pattern) error

Add inserts relationships, views, and patterns for testing.

func Get

func Get() ([]item.Item, []relationship.Relationship, []view.View, []pattern.Pattern, error)

Get loads relationship, view, and pattern data based on *.json files.

func Remove

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

Remove removes relationships, views, and patterns 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, rels []relationship.Relationship, views []view.View, patterns []pattern.Pattern) error

Add inserts relationships, views, and patterns for testing.

func Get

Get loads relationship, view, and pattern data based on *.json files.

func Remove

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

Remove removes relationships, views, and patterns 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