patternfix

package
v0.4.2 Latest Latest
Warning

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

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

README

patternfix

import "github.com/coralproject/shelf/internal/wire/pattern/patternfix"

Overview

Index

Package files

patternfix.go

func Add

func Add(context interface{}, db *db.DB, patterns []pattern.Pattern) error

Add inserts patterns for testing.

func Get

func Get() ([]pattern.Pattern, []map[string]interface{}, error)

Get loads pattern data based on patterns.json.

func Remove

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

Remove removes patterns in Mongo that match a given prefix.


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, patterns []pattern.Pattern) error

Add inserts patterns for testing.

func Get

func Get() ([]pattern.Pattern, []map[string]interface{}, error)

Get loads pattern data based on patterns.json.

func Remove

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

Remove removes patterns in Mongo that match a given prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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