mock

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRule

func AddRule(name string, cfunc CompileRuleFunc)

func Next

func Next(rules []Rule, info *Info) interface{}

func Run

func Run(path string, n int, t string)

Types

type CompileRuleFunc

type CompileRuleFunc func(s string) (Rule, error)

type ConnFunc

type ConnFunc func(conn gotoc.DBConn, dbName string) (*sql.DB, error)

type Info

type Info struct {
	IdMap     map[string]int64
	AffectMap map[string]int64
}

type Rule

type Rule interface {
	Get(info *Info) interface{}
}

func ParseRule

func ParseRule(s string) ([]Rule, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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