Documentation
¶
Index ¶
- Variables
- func Dao(configs ...interface{}) *dao
- func GetDatabase() (*mgo.Database, error)
- func GetValueLen(v interface{}) int
- func IsSlice(v interface{}) bool
- type Page
- type PropertyReader
- type Query
- func (q *Query) Count(collectionName interface{}) (int, error)
- func (q *Query) Distinct(collectionName interface{}, distinct string, result interface{}) error
- func (q *Query) Exist(collectionName interface{}) (bool, error)
- func (q *Query) First(result interface{}) error
- func (q *Query) IgnoreNFE() *Query
- func (q *Query) Last(result interface{}) error
- func (q *Query) Page(page *Page) *Query
- func (q *Query) Result(result interface{}) error
- func (q *Query) Sort(sorts ...string) *Query
Constants ¶
This section is empty.
Variables ¶
View Source
var DBConfig dbconfig
View Source
var PAGE_RECORD_COUNT = 20
Functions ¶
func GetDatabase ¶
func GetValueLen ¶
func GetValueLen(v interface{}) int
Types ¶
type PropertyReader ¶
type PropertyReader struct {
// contains filtered or unexported fields
}
func (PropertyReader) Read ¶
func (c PropertyReader) Read(key string) string
Click to show internal directories.
Click to hide internal directories.