hook

package
v0.0.0-...-193f563 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBLib

type DBLib interface {
	First(dbName, tableName, condition string) (map[interface{}]interface{}, error)
	Where(dbName, tableName, condition string) ([]map[interface{}]interface{}, error)
	Create(dbName, tableName string, data map[interface{}]interface{}) (map[interface{}]interface{}, error)
	Update(dbName, tableName string, data map[interface{}]interface{}) (map[interface{}]interface{}, error)
	Delete(dbName, tableName string, fields, data []interface{}) error
}

DBLib interface for lib in db

func NewPGLib

func NewPGLib(db map[string]*gorm.DB, modelMap map[string]map[string]database.Model) DBLib

NewPGLib dblib implement by postgres

type ScriptEngine

type ScriptEngine interface {
	Eval(ctx map[string]interface{}, content string) error
}

ScriptEngine interface for running script

func NewAnkoScriptEngine

func NewAnkoScriptEngine(db map[string]*gorm.DB, modelMap map[string]map[string]database.Model) (ScriptEngine, error)

NewAnkoScriptEngine engine for running a engine

Jump to

Keyboard shortcuts

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