Documentation ¶
Index ¶
- Constants
- Variables
- func All(table string, t reflect.Type) ([]interface{}, error)
- func Get(table string, key string, t reflect.Type) (interface{}, error)
- func GetNextID(table string) (string, error)
- func Set(table string, key string, value interface{}) error
- func Unset(table, key string) error
- type Counter
Constants ¶
View Source
const (
EMPTY_ID = "empty"
)
Variables ¶
View Source
var ( SERVER_TABLE = "server" TEMPLATE_TABLE = "template" CONFIGS_TABLE = "configs" COUNTER_TABLE = "counter" TABLES = []string{SERVER_TABLE, TEMPLATE_TABLE, CONFIGS_TABLE, COUNTER_TABLE} )
View Source
var (
GLOBAL_SESSION *mgo.Session
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.