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

# README

relationshipfix

import "github.com/coralproject/shelf/internal/wire/relationship/relationshipfix"

Overview

Index

Package files

relationshipfix.go

func Add

func Add(context interface{}, db *db.DB, rels []relationship.Relationship) error

Add inserts relationships for testing.

func Get

func Get() ([]relationship.Relationship, error)

Get loads relationship data based on relationships.json.

func Remove

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

Remove removes relationships in Mongo that match a given pattern.


Generated by godoc2md

# Functions

Add inserts relationships for testing.
Get loads relationship data based on relationships.json.
Remove removes relationships in Mongo that match a given pattern.