PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/goom.go

http://github.com/sut-go/gon
Go | 32 lines | 26 code | 6 blank | 0 comment | 0 complexity | 1e53a295b8a097523c004358e03a9ce3 MD5 | raw file
 1package goom
 2
 3type DataStore interface {
 4    DB(name string) Database
 5}
 6
 7type Database interface {
 8    C(name string) DataSet
 9}
10
11type Params map[string]interface{}
12
13type Getter interface {
14    Get(id string)     interface{}
15}
16type Inserter interface {
17    Insert(p interface{})  (interface{}, bool)
18}
19
20type GoomTemplate interface {
21    Query(stmt string) interface{}
22    FindOne(p Params)  interface{}
23    Get(id string)     interface{}
24    Insert(p interface{})  (interface{}, bool)
25}
26
27type DataSet interface {
28    Query(stmt string) interface{}
29    FindOne(p Params)  interface{}
30    Get(id string)     interface{}
31    Insert(p interface{})  (interface{}, bool)
32}