impl

package
v0.0.0-...-30807df Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SQLPouch

func SQLPouch(db pouch.Executor) pouch.Pouch

func SetDefaultVerbosity

func SetDefaultVerbosity(level VerbosityLevel)

Types

type DynamicPouch

type DynamicPouch interface {
	pouch.Pouch
	SetFind(func(pouch.Findable, interface{}) error)
	SetFindAll(func([]pouch.Findable, interface{}) error)
	SetCreate(func(pouch.Createable, interface{}) error)
	SetCreateAll(func([]pouch.Createable, interface{}) error)
	SetUpdate(func(pouch.Updateable, interface{}) error)
	SetUpdateAll(func([]pouch.Updateable, interface{}) error)
	SetDlete(func(pouch.Deleteable, interface{}) error)
	SetDleteAll(func([]pouch.Deleteable, interface{}) error)
}

func NewDynamicPouch

func NewDynamicPouch(backer interface{}) DynamicPouch

type DynamicQuery

type DynamicQuery interface {
	pouch.Query
	SetFind(func(pouch.Findable, interface{}) error)
	SetFindAll(func([]pouch.Findable, interface{}) error)
	SetCreate(func(pouch.Createable, interface{}) error)
	SetCreateAll(func([]pouch.Createable, interface{}) error)
	SetUpdate(func(pouch.Updateable, interface{}) error)
	SetUpdateAll(func([]pouch.Updateable, interface{}) error)
	SetDlete(func(pouch.Deleteable, interface{}) error)
	SetDleteAll(func([]pouch.Deleteable, interface{}) error)
}

type Logger

type Logger interface {
	Print(v ...interface{})
	V(level VerbosityLevel) Logger
	SetVerbosity(level VerbosityLevel)
}

type VerbosityLevel

type VerbosityLevel int
const (
	TRACE VerbosityLevel = iota
	INFO
	WARN
	ERROR
)

Jump to

Keyboard shortcuts

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