Documentation ¶
Index ¶
- Constants
- Variables
- func AgeOfUserRNGRelationRedisMgr(stores ...*orm.RedisStore) *_AgeOfUserRNGRelationRedisMgr
- func BlogDBMgr(db orm.DB) *_BlogDBMgr
- func ElasticSetup(cfg ESConfig)
- func IdOfUserRNGRelationRedisMgr(stores ...*orm.RedisStore) *_IdOfUserRNGRelationRedisMgr
- func MailboxPasswordOfUserUKRelationRedisMgr(stores ...*orm.RedisStore) *_MailboxPasswordOfUserUKRelationRedisMgr
- func MySQL() *orm.DBStore
- func MySQLSetup(cf *MySQLConfig)
- func Redis() *orm.RedisStore
- func RedisSetUp(cf *RedisConfig)
- func SexOfUserIDXRelationRedisMgr(stores ...*orm.RedisStore) *_SexOfUserIDXRelationRedisMgr
- func SexUserLocationDBMgr(db orm.DB) *_SexUserLocationDBMgr
- func SexUserLocationRedisMgr(stores ...*orm.RedisStore) *_SexUserLocationRedisMgr
- func SplitError(err error) []error
- func UserBaseInfoDBMgr(db orm.DB) *_UserBaseInfoDBMgr
- func UserBlogsDBMgr(db orm.DB) *_UserBlogsDBMgr
- func UserDBMgr(db orm.DB) *_UserDBMgr
- func UserIdDBMgr(db orm.DB) *_UserIdDBMgr
- func UserIdRedisMgr(stores ...*orm.RedisStore) *_UserIdRedisMgr
- func UserInfoDBMgr(db orm.DB) *_UserInfoDBMgr
- func UserLocationDBMgr(db orm.DB) *_UserLocationDBMgr
- func UserLocationRedisMgr(stores ...*orm.RedisStore) *_UserLocationRedisMgr
- func UserRedisMgr(store *orm.RedisStore) *_UserRedisMgr
- type AgeOfUserRNG
- func (u *AgeOfUserRNG) Begin() int64
- func (u *AgeOfUserRNG) End() int64
- func (u *AgeOfUserRNG) IncludeBegin(f bool)
- func (u *AgeOfUserRNG) IncludeEnd(f bool)
- func (u *AgeOfUserRNG) Key() string
- func (u *AgeOfUserRNG) Limit(n int)
- func (u *AgeOfUserRNG) Offset(n int)
- func (u *AgeOfUserRNG) PositionOffsetLimit(len int) (int, int)
- func (u *AgeOfUserRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *AgeOfUserRNG) Revert(b bool)
- func (u *AgeOfUserRNG) SQLFormat(limit bool) string
- func (u *AgeOfUserRNG) SQLLimit() int
- func (u *AgeOfUserRNG) SQLParams() []interface{}
- type AgeOfUserRNGRelation
- type Blog
- type DBFetcher
- type ESClient
- type ESConfig
- type Finder
- type IdOfIndexedBlogPK
- type IdOfIndexedBlogRNG
- func (u *IdOfIndexedBlogRNG) Begin() int64
- func (u *IdOfIndexedBlogRNG) End() int64
- func (u *IdOfIndexedBlogRNG) IncludeBegin(f bool)
- func (u *IdOfIndexedBlogRNG) IncludeEnd(f bool)
- func (u *IdOfIndexedBlogRNG) Key() string
- func (u *IdOfIndexedBlogRNG) Limit(n int)
- func (u *IdOfIndexedBlogRNG) Offset(n int)
- func (u *IdOfIndexedBlogRNG) PositionOffsetLimit(len int) (int, int)
- func (u *IdOfIndexedBlogRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *IdOfIndexedBlogRNG) Revert(b bool)
- func (u *IdOfIndexedBlogRNG) SQLFormat(limit bool) string
- func (u *IdOfIndexedBlogRNG) SQLLimit() int
- func (u *IdOfIndexedBlogRNG) SQLParams() []interface{}
- type IdOfUserBaseInfoPK
- type IdOfUserBaseInfoRNG
- func (u *IdOfUserBaseInfoRNG) Begin() int64
- func (u *IdOfUserBaseInfoRNG) End() int64
- func (u *IdOfUserBaseInfoRNG) IncludeBegin(f bool)
- func (u *IdOfUserBaseInfoRNG) IncludeEnd(f bool)
- func (u *IdOfUserBaseInfoRNG) Key() string
- func (u *IdOfUserBaseInfoRNG) Limit(n int)
- func (u *IdOfUserBaseInfoRNG) Offset(n int)
- func (u *IdOfUserBaseInfoRNG) PositionOffsetLimit(len int) (int, int)
- func (u *IdOfUserBaseInfoRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *IdOfUserBaseInfoRNG) Revert(b bool)
- func (u *IdOfUserBaseInfoRNG) SQLFormat(limit bool) string
- func (u *IdOfUserBaseInfoRNG) SQLLimit() int
- func (u *IdOfUserBaseInfoRNG) SQLParams() []interface{}
- type IdOfUserPK
- type IdOfUserRNG
- func (u *IdOfUserRNG) Begin() int64
- func (u *IdOfUserRNG) End() int64
- func (u *IdOfUserRNG) IncludeBegin(f bool)
- func (u *IdOfUserRNG) IncludeEnd(f bool)
- func (u *IdOfUserRNG) Key() string
- func (u *IdOfUserRNG) Limit(n int)
- func (u *IdOfUserRNG) Offset(n int)
- func (u *IdOfUserRNG) PositionOffsetLimit(len int) (int, int)
- func (u *IdOfUserRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *IdOfUserRNG) Revert(b bool)
- func (u *IdOfUserRNG) SQLFormat(limit bool) string
- func (u *IdOfUserRNG) SQLLimit() int
- func (u *IdOfUserRNG) SQLParams() []interface{}
- type IdOfUserRNGRelation
- type IdUserIdOfBlogPK
- type IdUserIdOfBlogRNG
- func (u *IdUserIdOfBlogRNG) Begin() int64
- func (u *IdUserIdOfBlogRNG) End() int64
- func (u *IdUserIdOfBlogRNG) IncludeBegin(f bool)
- func (u *IdUserIdOfBlogRNG) IncludeEnd(f bool)
- func (u *IdUserIdOfBlogRNG) Key() string
- func (u *IdUserIdOfBlogRNG) Limit(n int)
- func (u *IdUserIdOfBlogRNG) Offset(n int)
- func (u *IdUserIdOfBlogRNG) PositionOffsetLimit(len int) (int, int)
- func (u *IdUserIdOfBlogRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *IdUserIdOfBlogRNG) Revert(b bool)
- func (u *IdUserIdOfBlogRNG) SQLFormat(limit bool) string
- func (u *IdUserIdOfBlogRNG) SQLLimit() int
- func (u *IdUserIdOfBlogRNG) SQLParams() []interface{}
- type Index
- type IndexRelation
- type IndexedBlog
- func (obj *IndexedBlog) GetClassName() string
- func (obj *IndexedBlog) GetColumns() []string
- func (obj *IndexedBlog) GetNameSpace() string
- func (obj *IndexedBlog) GetNoneIncrementColumns() []string
- func (obj *IndexedBlog) GetPrimaryKey() PrimaryKey
- func (obj *IndexedBlog) GetTableName() string
- func (obj *IndexedBlog) Validate() error
- type MailboxPasswordOfUserBaseInfoUK
- func (u *MailboxPasswordOfUserBaseInfoUK) Key() string
- func (u *MailboxPasswordOfUserBaseInfoUK) Limit(n int)
- func (u *MailboxPasswordOfUserBaseInfoUK) Offset(n int)
- func (u *MailboxPasswordOfUserBaseInfoUK) SQLFormat(limit bool) string
- func (u *MailboxPasswordOfUserBaseInfoUK) SQLLimit() int
- func (u *MailboxPasswordOfUserBaseInfoUK) SQLParams() []interface{}
- func (u *MailboxPasswordOfUserBaseInfoUK) UKRelation(store *orm.RedisStore) UniqueRelation
- type MailboxPasswordOfUserUK
- func (u *MailboxPasswordOfUserUK) Key() string
- func (u *MailboxPasswordOfUserUK) Limit(n int)
- func (u *MailboxPasswordOfUserUK) Offset(n int)
- func (u *MailboxPasswordOfUserUK) SQLFormat(limit bool) string
- func (u *MailboxPasswordOfUserUK) SQLLimit() int
- func (u *MailboxPasswordOfUserUK) SQLParams() []interface{}
- func (u *MailboxPasswordOfUserUK) UKRelation(store *orm.RedisStore) UniqueRelation
- type MailboxPasswordOfUserUKRelation
- type MySQLConfig
- type NameOfUserBaseInfoIDX
- func (u *NameOfUserBaseInfoIDX) IDXRelation(store *orm.RedisStore) IndexRelation
- func (u *NameOfUserBaseInfoIDX) Key() string
- func (u *NameOfUserBaseInfoIDX) Limit(n int)
- func (u *NameOfUserBaseInfoIDX) Offset(n int)
- func (u *NameOfUserBaseInfoIDX) PositionOffsetLimit(len int) (int, int)
- func (u *NameOfUserBaseInfoIDX) SQLFormat(limit bool) string
- func (u *NameOfUserBaseInfoIDX) SQLLimit() int
- func (u *NameOfUserBaseInfoIDX) SQLParams() []interface{}
- type Object
- type PrimaryKey
- type Range
- type RangeRelation
- type RedisConfig
- type SQL
- type SexOfUserIDX
- func (u *SexOfUserIDX) IDXRelation(store *orm.RedisStore) IndexRelation
- func (u *SexOfUserIDX) Key() string
- func (u *SexOfUserIDX) Limit(n int)
- func (u *SexOfUserIDX) Offset(n int)
- func (u *SexOfUserIDX) PositionOffsetLimit(len int) (int, int)
- func (u *SexOfUserIDX) SQLFormat(limit bool) string
- func (u *SexOfUserIDX) SQLLimit() int
- func (u *SexOfUserIDX) SQLParams() []interface{}
- type SexOfUserIDXRelation
- type SexUserLocation
- type StatusOfBlogIDX
- func (u *StatusOfBlogIDX) IDXRelation(store *orm.RedisStore) IndexRelation
- func (u *StatusOfBlogIDX) Key() string
- func (u *StatusOfBlogIDX) Limit(n int)
- func (u *StatusOfBlogIDX) Offset(n int)
- func (u *StatusOfBlogIDX) PositionOffsetLimit(len int) (int, int)
- func (u *StatusOfBlogIDX) SQLFormat(limit bool) string
- func (u *StatusOfBlogIDX) SQLLimit() int
- func (u *StatusOfBlogIDX) SQLParams() []interface{}
- type Unique
- type UniqueRelation
- type User
- func (obj *User) GetClassName() string
- func (obj *User) GetColumns() []string
- func (obj *User) GetIndexes() []string
- func (obj *User) GetNameSpace() string
- func (obj *User) GetNoneIncrementColumns() []string
- func (obj *User) GetPrimaryKey() PrimaryKey
- func (obj *User) GetPrimaryName() string
- func (obj *User) GetStoreType() string
- func (obj *User) GetTableName() string
- func (obj *User) Validate() error
- type UserBaseInfo
- func (obj *UserBaseInfo) GetClassName() string
- func (obj *UserBaseInfo) GetColumns() []string
- func (obj *UserBaseInfo) GetNameSpace() string
- func (obj *UserBaseInfo) GetNoneIncrementColumns() []string
- func (obj *UserBaseInfo) GetPrimaryKey() PrimaryKey
- func (obj *UserBaseInfo) GetTableName() string
- func (obj *UserBaseInfo) Validate() error
- type UserBlogs
- func (obj *UserBlogs) GetClassName() string
- func (obj *UserBlogs) GetColumns() []string
- func (obj *UserBlogs) GetNameSpace() string
- func (obj *UserBlogs) GetNoneIncrementColumns() []string
- func (obj *UserBlogs) GetPrimaryKey() PrimaryKey
- func (obj *UserBlogs) GetTableName() string
- func (obj *UserBlogs) Validate() error
- type UserId
- type UserIdBlogIdOfUserBlogsPK
- type UserIdBlogIdOfUserBlogsRNG
- func (u *UserIdBlogIdOfUserBlogsRNG) Begin() int64
- func (u *UserIdBlogIdOfUserBlogsRNG) End() int64
- func (u *UserIdBlogIdOfUserBlogsRNG) IncludeBegin(f bool)
- func (u *UserIdBlogIdOfUserBlogsRNG) IncludeEnd(f bool)
- func (u *UserIdBlogIdOfUserBlogsRNG) Key() string
- func (u *UserIdBlogIdOfUserBlogsRNG) Limit(n int)
- func (u *UserIdBlogIdOfUserBlogsRNG) Offset(n int)
- func (u *UserIdBlogIdOfUserBlogsRNG) PositionOffsetLimit(len int) (int, int)
- func (u *UserIdBlogIdOfUserBlogsRNG) RNGRelation(store *orm.RedisStore) RangeRelation
- func (u *UserIdBlogIdOfUserBlogsRNG) Revert(b bool)
- func (u *UserIdBlogIdOfUserBlogsRNG) SQLFormat(limit bool) string
- func (u *UserIdBlogIdOfUserBlogsRNG) SQLLimit() int
- func (u *UserIdBlogIdOfUserBlogsRNG) SQLParams() []interface{}
- type UserInfo
- type UserLocation
Constants ¶
View Source
const ( PAIR = "pair" HASH = "hash" SET = "set" ZSET = "zset" GEO = "geo" LIST = "list" ERROR_SPLIT = "#-#" )
Variables ¶
View Source
var BlogColumns = struct { Id string UserId string Title string Content string Status string Readed string CreatedAt string UpdatedAt string }{ "id", "user_id", "title", "content", "status", "readed", "created_at", "updated_at", }
View Source
var BlogElasticFields = struct { Title string Content string CreatedAt string }{ "title", "content", "created_at", }
! orm.elastic
View Source
var BlogElasticMgr = &_BlogElasticMgr{}
View Source
var BlogMgr *_BlogMgr
View Source
var IndexedBlogElasticFields = struct { Title string Content string CreatedAt string UpdatedAt string }{ "title", "content", "created_at", "updated_at", }
! orm.elastic
View Source
var IndexedBlogElasticMgr = &_IndexedBlogElasticMgr{}
View Source
var IndexedBlogMgr *_IndexedBlogMgr
View Source
var UserBaseInfoColumns = struct { Id string Name string Mailbox string Password string Sex string }{ "id", "name", "mailbox", "password", "sex", }
View Source
var UserBaseInfoMgr *_UserBaseInfoMgr
View Source
var UserBlogsColumns = struct { UserId string BlogId string }{ "user_id", "blog_id", }
View Source
var UserBlogsMgr *_UserBlogsMgr
View Source
var UserColumns = struct { Id string Name string Mailbox string Sex string Age string Longitude string Latitude string Description string Password string HeadUrl string Status string CreatedAt string UpdatedAt string DeletedAt string }{ "id", "name", "mailbox", "sex", "age", "longitude", "latitude", "description", "password", "head_url", "status", "created_at", "updated_at", "deleted_at", }
View Source
var UserInfoMgr *_UserInfoMgr
View Source
var UserMgr *_UserMgr
Functions ¶
func AgeOfUserRNGRelationRedisMgr ¶
func AgeOfUserRNGRelationRedisMgr(stores ...*orm.RedisStore) *_AgeOfUserRNGRelationRedisMgr
func ElasticSetup ¶
func ElasticSetup(cfg ESConfig)
func IdOfUserRNGRelationRedisMgr ¶
func IdOfUserRNGRelationRedisMgr(stores ...*orm.RedisStore) *_IdOfUserRNGRelationRedisMgr
func MailboxPasswordOfUserUKRelationRedisMgr ¶
func MailboxPasswordOfUserUKRelationRedisMgr(stores ...*orm.RedisStore) *_MailboxPasswordOfUserUKRelationRedisMgr
func MySQLSetup ¶
func MySQLSetup(cf *MySQLConfig)
func Redis ¶
func Redis() *orm.RedisStore
func RedisSetUp ¶
func RedisSetUp(cf *RedisConfig)
func SexOfUserIDXRelationRedisMgr ¶
func SexOfUserIDXRelationRedisMgr(stores ...*orm.RedisStore) *_SexOfUserIDXRelationRedisMgr
func SexUserLocationDBMgr ¶
func SexUserLocationRedisMgr ¶
func SexUserLocationRedisMgr(stores ...*orm.RedisStore) *_SexUserLocationRedisMgr
func UserBaseInfoDBMgr ¶
func UserBlogsDBMgr ¶
func UserIdDBMgr ¶
func UserIdRedisMgr ¶
func UserIdRedisMgr(stores ...*orm.RedisStore) *_UserIdRedisMgr
func UserInfoDBMgr ¶
func UserLocationDBMgr ¶
func UserLocationRedisMgr ¶
func UserLocationRedisMgr(stores ...*orm.RedisStore) *_UserLocationRedisMgr
func UserRedisMgr ¶
func UserRedisMgr(store *orm.RedisStore) *_UserRedisMgr
Types ¶
type AgeOfUserRNG ¶
func (*AgeOfUserRNG) Begin ¶
func (u *AgeOfUserRNG) Begin() int64
func (*AgeOfUserRNG) End ¶
func (u *AgeOfUserRNG) End() int64
func (*AgeOfUserRNG) IncludeBegin ¶
func (u *AgeOfUserRNG) IncludeBegin(f bool)
func (*AgeOfUserRNG) IncludeEnd ¶
func (u *AgeOfUserRNG) IncludeEnd(f bool)
func (*AgeOfUserRNG) Key ¶
func (u *AgeOfUserRNG) Key() string
func (*AgeOfUserRNG) Limit ¶
func (u *AgeOfUserRNG) Limit(n int)
func (*AgeOfUserRNG) Offset ¶
func (u *AgeOfUserRNG) Offset(n int)
func (*AgeOfUserRNG) PositionOffsetLimit ¶
func (u *AgeOfUserRNG) PositionOffsetLimit(len int) (int, int)
func (*AgeOfUserRNG) RNGRelation ¶
func (u *AgeOfUserRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*AgeOfUserRNG) Revert ¶
func (u *AgeOfUserRNG) Revert(b bool)
func (*AgeOfUserRNG) SQLFormat ¶
func (u *AgeOfUserRNG) SQLFormat(limit bool) string
func (*AgeOfUserRNG) SQLLimit ¶
func (u *AgeOfUserRNG) SQLLimit() int
func (*AgeOfUserRNG) SQLParams ¶
func (u *AgeOfUserRNG) SQLParams() []interface{}
type AgeOfUserRNGRelation ¶
type AgeOfUserRNGRelation struct { Key string `db:"key" json:"key"` Score float64 `db:"score" json:"score"` Value string `db:"value" json:"value"` }
! relation
func (*AgeOfUserRNGRelation) GetClassName ¶
func (relation *AgeOfUserRNGRelation) GetClassName() string
func (*AgeOfUserRNGRelation) GetIndexes ¶
func (relation *AgeOfUserRNGRelation) GetIndexes() []string
func (*AgeOfUserRNGRelation) GetStoreType ¶
func (relation *AgeOfUserRNGRelation) GetStoreType() string
type Blog ¶
type Blog struct { Id int32 `db:"id" json:"id"` UserId int32 `db:"user_id" json:"user_id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` Status int32 `db:"status" json:"status"` Readed int32 `db:"readed" json:"readed"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
func (*Blog) GetClassName ¶
func (*Blog) GetColumns ¶
func (*Blog) GetNameSpace ¶
func (*Blog) GetNoneIncrementColumns ¶
func (*Blog) GetPrimaryKey ¶
func (obj *Blog) GetPrimaryKey() PrimaryKey
func (*Blog) GetTableName ¶
type ESClient ¶
func ElasticClient ¶
func ElasticClient() *ESClient
func (*ESClient) IndexService ¶
func (e *ESClient) IndexService(index string) *elastic.IndexService
func (*ESClient) PutMappingService ¶
func (e *ESClient) PutMappingService(index string) *elastic.PutMappingService
type ESConfig ¶
type Finder ¶
type Finder interface { FindOne(unique Unique) (PrimaryKey, error) Find(index Index) (int64, []PrimaryKey, error) Range(scope Range) (int64, []PrimaryKey, error) RangeRevert(scope Range) (int64, []PrimaryKey, error) }
type IdOfIndexedBlogPK ¶
type IdOfIndexedBlogPK struct {
Id int32
}
func (*IdOfIndexedBlogPK) Columns ¶
func (u *IdOfIndexedBlogPK) Columns() []string
func (*IdOfIndexedBlogPK) Key ¶
func (u *IdOfIndexedBlogPK) Key() string
func (*IdOfIndexedBlogPK) Parse ¶
func (u *IdOfIndexedBlogPK) Parse(key string) error
func (*IdOfIndexedBlogPK) SQLFormat ¶
func (u *IdOfIndexedBlogPK) SQLFormat() string
func (*IdOfIndexedBlogPK) SQLParams ¶
func (u *IdOfIndexedBlogPK) SQLParams() []interface{}
type IdOfIndexedBlogRNG ¶
type IdOfIndexedBlogRNG struct { IdBegin int64 IdEnd int64 // contains filtered or unexported fields }
func (*IdOfIndexedBlogRNG) Begin ¶
func (u *IdOfIndexedBlogRNG) Begin() int64
func (*IdOfIndexedBlogRNG) End ¶
func (u *IdOfIndexedBlogRNG) End() int64
func (*IdOfIndexedBlogRNG) IncludeBegin ¶
func (u *IdOfIndexedBlogRNG) IncludeBegin(f bool)
func (*IdOfIndexedBlogRNG) IncludeEnd ¶
func (u *IdOfIndexedBlogRNG) IncludeEnd(f bool)
func (*IdOfIndexedBlogRNG) Key ¶
func (u *IdOfIndexedBlogRNG) Key() string
func (*IdOfIndexedBlogRNG) Limit ¶
func (u *IdOfIndexedBlogRNG) Limit(n int)
func (*IdOfIndexedBlogRNG) Offset ¶
func (u *IdOfIndexedBlogRNG) Offset(n int)
func (*IdOfIndexedBlogRNG) PositionOffsetLimit ¶
func (u *IdOfIndexedBlogRNG) PositionOffsetLimit(len int) (int, int)
func (*IdOfIndexedBlogRNG) RNGRelation ¶
func (u *IdOfIndexedBlogRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*IdOfIndexedBlogRNG) Revert ¶
func (u *IdOfIndexedBlogRNG) Revert(b bool)
func (*IdOfIndexedBlogRNG) SQLFormat ¶
func (u *IdOfIndexedBlogRNG) SQLFormat(limit bool) string
func (*IdOfIndexedBlogRNG) SQLLimit ¶
func (u *IdOfIndexedBlogRNG) SQLLimit() int
func (*IdOfIndexedBlogRNG) SQLParams ¶
func (u *IdOfIndexedBlogRNG) SQLParams() []interface{}
type IdOfUserBaseInfoPK ¶
type IdOfUserBaseInfoPK struct {
Id int32
}
func (*IdOfUserBaseInfoPK) Columns ¶
func (u *IdOfUserBaseInfoPK) Columns() []string
func (*IdOfUserBaseInfoPK) Key ¶
func (u *IdOfUserBaseInfoPK) Key() string
func (*IdOfUserBaseInfoPK) Parse ¶
func (u *IdOfUserBaseInfoPK) Parse(key string) error
func (*IdOfUserBaseInfoPK) SQLFormat ¶
func (u *IdOfUserBaseInfoPK) SQLFormat() string
func (*IdOfUserBaseInfoPK) SQLParams ¶
func (u *IdOfUserBaseInfoPK) SQLParams() []interface{}
type IdOfUserBaseInfoRNG ¶
type IdOfUserBaseInfoRNG struct { IdBegin int64 IdEnd int64 // contains filtered or unexported fields }
func (*IdOfUserBaseInfoRNG) Begin ¶
func (u *IdOfUserBaseInfoRNG) Begin() int64
func (*IdOfUserBaseInfoRNG) End ¶
func (u *IdOfUserBaseInfoRNG) End() int64
func (*IdOfUserBaseInfoRNG) IncludeBegin ¶
func (u *IdOfUserBaseInfoRNG) IncludeBegin(f bool)
func (*IdOfUserBaseInfoRNG) IncludeEnd ¶
func (u *IdOfUserBaseInfoRNG) IncludeEnd(f bool)
func (*IdOfUserBaseInfoRNG) Key ¶
func (u *IdOfUserBaseInfoRNG) Key() string
func (*IdOfUserBaseInfoRNG) Limit ¶
func (u *IdOfUserBaseInfoRNG) Limit(n int)
func (*IdOfUserBaseInfoRNG) Offset ¶
func (u *IdOfUserBaseInfoRNG) Offset(n int)
func (*IdOfUserBaseInfoRNG) PositionOffsetLimit ¶
func (u *IdOfUserBaseInfoRNG) PositionOffsetLimit(len int) (int, int)
func (*IdOfUserBaseInfoRNG) RNGRelation ¶
func (u *IdOfUserBaseInfoRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*IdOfUserBaseInfoRNG) Revert ¶
func (u *IdOfUserBaseInfoRNG) Revert(b bool)
func (*IdOfUserBaseInfoRNG) SQLFormat ¶
func (u *IdOfUserBaseInfoRNG) SQLFormat(limit bool) string
func (*IdOfUserBaseInfoRNG) SQLLimit ¶
func (u *IdOfUserBaseInfoRNG) SQLLimit() int
func (*IdOfUserBaseInfoRNG) SQLParams ¶
func (u *IdOfUserBaseInfoRNG) SQLParams() []interface{}
type IdOfUserPK ¶
type IdOfUserPK struct {
Id int32
}
func (*IdOfUserPK) Columns ¶
func (u *IdOfUserPK) Columns() []string
func (*IdOfUserPK) Key ¶
func (u *IdOfUserPK) Key() string
func (*IdOfUserPK) Parse ¶
func (u *IdOfUserPK) Parse(key string) error
func (*IdOfUserPK) SQLFormat ¶
func (u *IdOfUserPK) SQLFormat() string
func (*IdOfUserPK) SQLParams ¶
func (u *IdOfUserPK) SQLParams() []interface{}
type IdOfUserRNG ¶
func (*IdOfUserRNG) Begin ¶
func (u *IdOfUserRNG) Begin() int64
func (*IdOfUserRNG) End ¶
func (u *IdOfUserRNG) End() int64
func (*IdOfUserRNG) IncludeBegin ¶
func (u *IdOfUserRNG) IncludeBegin(f bool)
func (*IdOfUserRNG) IncludeEnd ¶
func (u *IdOfUserRNG) IncludeEnd(f bool)
func (*IdOfUserRNG) Key ¶
func (u *IdOfUserRNG) Key() string
func (*IdOfUserRNG) Limit ¶
func (u *IdOfUserRNG) Limit(n int)
func (*IdOfUserRNG) Offset ¶
func (u *IdOfUserRNG) Offset(n int)
func (*IdOfUserRNG) PositionOffsetLimit ¶
func (u *IdOfUserRNG) PositionOffsetLimit(len int) (int, int)
func (*IdOfUserRNG) RNGRelation ¶
func (u *IdOfUserRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*IdOfUserRNG) Revert ¶
func (u *IdOfUserRNG) Revert(b bool)
func (*IdOfUserRNG) SQLFormat ¶
func (u *IdOfUserRNG) SQLFormat(limit bool) string
func (*IdOfUserRNG) SQLLimit ¶
func (u *IdOfUserRNG) SQLLimit() int
func (*IdOfUserRNG) SQLParams ¶
func (u *IdOfUserRNG) SQLParams() []interface{}
type IdOfUserRNGRelation ¶
type IdOfUserRNGRelation struct { Key string `db:"key" json:"key"` Score float64 `db:"score" json:"score"` Value string `db:"value" json:"value"` }
! relation
func (*IdOfUserRNGRelation) GetClassName ¶
func (relation *IdOfUserRNGRelation) GetClassName() string
func (*IdOfUserRNGRelation) GetIndexes ¶
func (relation *IdOfUserRNGRelation) GetIndexes() []string
func (*IdOfUserRNGRelation) GetStoreType ¶
func (relation *IdOfUserRNGRelation) GetStoreType() string
type IdUserIdOfBlogPK ¶
func (*IdUserIdOfBlogPK) Columns ¶
func (u *IdUserIdOfBlogPK) Columns() []string
func (*IdUserIdOfBlogPK) Key ¶
func (u *IdUserIdOfBlogPK) Key() string
func (*IdUserIdOfBlogPK) Parse ¶
func (u *IdUserIdOfBlogPK) Parse(key string) error
func (*IdUserIdOfBlogPK) SQLFormat ¶
func (u *IdUserIdOfBlogPK) SQLFormat() string
func (*IdUserIdOfBlogPK) SQLParams ¶
func (u *IdUserIdOfBlogPK) SQLParams() []interface{}
type IdUserIdOfBlogRNG ¶
type IdUserIdOfBlogRNG struct { Id int32 UserIdBegin int64 UserIdEnd int64 // contains filtered or unexported fields }
func (*IdUserIdOfBlogRNG) Begin ¶
func (u *IdUserIdOfBlogRNG) Begin() int64
func (*IdUserIdOfBlogRNG) End ¶
func (u *IdUserIdOfBlogRNG) End() int64
func (*IdUserIdOfBlogRNG) IncludeBegin ¶
func (u *IdUserIdOfBlogRNG) IncludeBegin(f bool)
func (*IdUserIdOfBlogRNG) IncludeEnd ¶
func (u *IdUserIdOfBlogRNG) IncludeEnd(f bool)
func (*IdUserIdOfBlogRNG) Key ¶
func (u *IdUserIdOfBlogRNG) Key() string
func (*IdUserIdOfBlogRNG) Limit ¶
func (u *IdUserIdOfBlogRNG) Limit(n int)
func (*IdUserIdOfBlogRNG) Offset ¶
func (u *IdUserIdOfBlogRNG) Offset(n int)
func (*IdUserIdOfBlogRNG) PositionOffsetLimit ¶
func (u *IdUserIdOfBlogRNG) PositionOffsetLimit(len int) (int, int)
func (*IdUserIdOfBlogRNG) RNGRelation ¶
func (u *IdUserIdOfBlogRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*IdUserIdOfBlogRNG) Revert ¶
func (u *IdUserIdOfBlogRNG) Revert(b bool)
func (*IdUserIdOfBlogRNG) SQLFormat ¶
func (u *IdUserIdOfBlogRNG) SQLFormat(limit bool) string
func (*IdUserIdOfBlogRNG) SQLLimit ¶
func (u *IdUserIdOfBlogRNG) SQLLimit() int
func (*IdUserIdOfBlogRNG) SQLParams ¶
func (u *IdUserIdOfBlogRNG) SQLParams() []interface{}
type Index ¶
type Index interface { SQL Key() string PositionOffsetLimit(len int) (int, int) IDXRelation(store *orm.RedisStore) IndexRelation }
type IndexRelation ¶
type IndexedBlog ¶
type IndexedBlog struct { Id int32 `json:"id"` UserId int32 `json:"user_id"` Hash string `json:"hash"` Title string `json:"title"` Content string `json:"content"` Readed int32 `json:"readed"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func (*IndexedBlog) GetClassName ¶
func (obj *IndexedBlog) GetClassName() string
func (*IndexedBlog) GetColumns ¶
func (obj *IndexedBlog) GetColumns() []string
func (*IndexedBlog) GetNameSpace ¶
func (obj *IndexedBlog) GetNameSpace() string
func (*IndexedBlog) GetNoneIncrementColumns ¶
func (obj *IndexedBlog) GetNoneIncrementColumns() []string
func (*IndexedBlog) GetPrimaryKey ¶
func (obj *IndexedBlog) GetPrimaryKey() PrimaryKey
func (*IndexedBlog) GetTableName ¶
func (obj *IndexedBlog) GetTableName() string
func (*IndexedBlog) Validate ¶
func (obj *IndexedBlog) Validate() error
type MailboxPasswordOfUserBaseInfoUK ¶
func (*MailboxPasswordOfUserBaseInfoUK) Key ¶
func (u *MailboxPasswordOfUserBaseInfoUK) Key() string
func (*MailboxPasswordOfUserBaseInfoUK) Limit ¶
func (u *MailboxPasswordOfUserBaseInfoUK) Limit(n int)
func (*MailboxPasswordOfUserBaseInfoUK) Offset ¶
func (u *MailboxPasswordOfUserBaseInfoUK) Offset(n int)
func (*MailboxPasswordOfUserBaseInfoUK) SQLFormat ¶
func (u *MailboxPasswordOfUserBaseInfoUK) SQLFormat(limit bool) string
func (*MailboxPasswordOfUserBaseInfoUK) SQLLimit ¶
func (u *MailboxPasswordOfUserBaseInfoUK) SQLLimit() int
func (*MailboxPasswordOfUserBaseInfoUK) SQLParams ¶
func (u *MailboxPasswordOfUserBaseInfoUK) SQLParams() []interface{}
func (*MailboxPasswordOfUserBaseInfoUK) UKRelation ¶
func (u *MailboxPasswordOfUserBaseInfoUK) UKRelation(store *orm.RedisStore) UniqueRelation
type MailboxPasswordOfUserUK ¶
func (*MailboxPasswordOfUserUK) Key ¶
func (u *MailboxPasswordOfUserUK) Key() string
func (*MailboxPasswordOfUserUK) Limit ¶
func (u *MailboxPasswordOfUserUK) Limit(n int)
func (*MailboxPasswordOfUserUK) Offset ¶
func (u *MailboxPasswordOfUserUK) Offset(n int)
func (*MailboxPasswordOfUserUK) SQLFormat ¶
func (u *MailboxPasswordOfUserUK) SQLFormat(limit bool) string
func (*MailboxPasswordOfUserUK) SQLLimit ¶
func (u *MailboxPasswordOfUserUK) SQLLimit() int
func (*MailboxPasswordOfUserUK) SQLParams ¶
func (u *MailboxPasswordOfUserUK) SQLParams() []interface{}
func (*MailboxPasswordOfUserUK) UKRelation ¶
func (u *MailboxPasswordOfUserUK) UKRelation(store *orm.RedisStore) UniqueRelation
type MailboxPasswordOfUserUKRelation ¶
type MailboxPasswordOfUserUKRelation struct { Key string `db:"key" json:"key"` Value string `db:"value" json:"value"` }
! relation
func (*MailboxPasswordOfUserUKRelation) GetClassName ¶
func (relation *MailboxPasswordOfUserUKRelation) GetClassName() string
func (*MailboxPasswordOfUserUKRelation) GetIndexes ¶
func (relation *MailboxPasswordOfUserUKRelation) GetIndexes() []string
func (*MailboxPasswordOfUserUKRelation) GetStoreType ¶
func (relation *MailboxPasswordOfUserUKRelation) GetStoreType() string
type MySQLConfig ¶
type NameOfUserBaseInfoIDX ¶
type NameOfUserBaseInfoIDX struct { Name string // contains filtered or unexported fields }
func (*NameOfUserBaseInfoIDX) IDXRelation ¶
func (u *NameOfUserBaseInfoIDX) IDXRelation(store *orm.RedisStore) IndexRelation
func (*NameOfUserBaseInfoIDX) Key ¶
func (u *NameOfUserBaseInfoIDX) Key() string
func (*NameOfUserBaseInfoIDX) Limit ¶
func (u *NameOfUserBaseInfoIDX) Limit(n int)
func (*NameOfUserBaseInfoIDX) Offset ¶
func (u *NameOfUserBaseInfoIDX) Offset(n int)
func (*NameOfUserBaseInfoIDX) PositionOffsetLimit ¶
func (u *NameOfUserBaseInfoIDX) PositionOffsetLimit(len int) (int, int)
func (*NameOfUserBaseInfoIDX) SQLFormat ¶
func (u *NameOfUserBaseInfoIDX) SQLFormat(limit bool) string
func (*NameOfUserBaseInfoIDX) SQLLimit ¶
func (u *NameOfUserBaseInfoIDX) SQLLimit() int
func (*NameOfUserBaseInfoIDX) SQLParams ¶
func (u *NameOfUserBaseInfoIDX) SQLParams() []interface{}
type PrimaryKey ¶
type PrimaryKey interface { Key() string SQLFormat() string SQLParams() []interface{} Columns() []string Parse(key string) error }
! conf.orm
type RangeRelation ¶
type RedisConfig ¶
type SexOfUserIDX ¶
type SexOfUserIDX struct { Sex bool // contains filtered or unexported fields }
func (*SexOfUserIDX) IDXRelation ¶
func (u *SexOfUserIDX) IDXRelation(store *orm.RedisStore) IndexRelation
func (*SexOfUserIDX) Key ¶
func (u *SexOfUserIDX) Key() string
func (*SexOfUserIDX) Limit ¶
func (u *SexOfUserIDX) Limit(n int)
func (*SexOfUserIDX) Offset ¶
func (u *SexOfUserIDX) Offset(n int)
func (*SexOfUserIDX) PositionOffsetLimit ¶
func (u *SexOfUserIDX) PositionOffsetLimit(len int) (int, int)
func (*SexOfUserIDX) SQLFormat ¶
func (u *SexOfUserIDX) SQLFormat(limit bool) string
func (*SexOfUserIDX) SQLLimit ¶
func (u *SexOfUserIDX) SQLLimit() int
func (*SexOfUserIDX) SQLParams ¶
func (u *SexOfUserIDX) SQLParams() []interface{}
type SexOfUserIDXRelation ¶
type SexOfUserIDXRelation struct { Key string `db:"key" json:"key"` Value string `db:"value" json:"value"` }
! relation
func (*SexOfUserIDXRelation) GetClassName ¶
func (relation *SexOfUserIDXRelation) GetClassName() string
func (*SexOfUserIDXRelation) GetIndexes ¶
func (relation *SexOfUserIDXRelation) GetIndexes() []string
func (*SexOfUserIDXRelation) GetStoreType ¶
func (relation *SexOfUserIDXRelation) GetStoreType() string
type SexUserLocation ¶
type SexUserLocation struct { Key string `db:"key" json:"key"` Longitude float64 `db:"longitude" json:"longitude"` Latitude float64 `db:"latitude" json:"latitude"` Value int32 `db:"value" json:"value"` }
! relation
func (*SexUserLocation) GetClassName ¶
func (relation *SexUserLocation) GetClassName() string
func (*SexUserLocation) GetIndexes ¶
func (relation *SexUserLocation) GetIndexes() []string
func (*SexUserLocation) GetStoreType ¶
func (relation *SexUserLocation) GetStoreType() string
type StatusOfBlogIDX ¶
type StatusOfBlogIDX struct { Status int32 // contains filtered or unexported fields }
func (*StatusOfBlogIDX) IDXRelation ¶
func (u *StatusOfBlogIDX) IDXRelation(store *orm.RedisStore) IndexRelation
func (*StatusOfBlogIDX) Key ¶
func (u *StatusOfBlogIDX) Key() string
func (*StatusOfBlogIDX) Limit ¶
func (u *StatusOfBlogIDX) Limit(n int)
func (*StatusOfBlogIDX) Offset ¶
func (u *StatusOfBlogIDX) Offset(n int)
func (*StatusOfBlogIDX) PositionOffsetLimit ¶
func (u *StatusOfBlogIDX) PositionOffsetLimit(len int) (int, int)
func (*StatusOfBlogIDX) SQLFormat ¶
func (u *StatusOfBlogIDX) SQLFormat(limit bool) string
func (*StatusOfBlogIDX) SQLLimit ¶
func (u *StatusOfBlogIDX) SQLLimit() int
func (*StatusOfBlogIDX) SQLParams ¶
func (u *StatusOfBlogIDX) SQLParams() []interface{}
type Unique ¶
type Unique interface { SQL Key() string UKRelation(store *orm.RedisStore) UniqueRelation }
type UniqueRelation ¶
type User ¶
type User struct { Id int32 `db:"id" json:"id"` Name string `db:"name" json:"name" validate:"required"` Mailbox string `db:"mailbox" json:"mailbox" validate:"required"` Sex bool `db:"sex" json:"sex"` Age int32 `db:"age" json:"age"` Longitude float64 `db:"longitude" json:"longitude"` Latitude float64 `db:"latitude" json:"latitude"` Description string `db:"description" json:"description"` Password string `db:"password" json:"password"` HeadUrl string `db:"head_url" json:"head_url"` Status int32 `db:"status" json:"status"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` DeletedAt *time.Time `db:"deleted_at" json:"deleted_at"` }
func (*User) GetClassName ¶
func (*User) GetColumns ¶
func (*User) GetIndexes ¶
func (*User) GetNameSpace ¶
func (*User) GetNoneIncrementColumns ¶
func (*User) GetPrimaryKey ¶
func (obj *User) GetPrimaryKey() PrimaryKey
func (*User) GetPrimaryName ¶
func (*User) GetStoreType ¶
func (*User) GetTableName ¶
type UserBaseInfo ¶
type UserBaseInfo struct { Id int32 `db:"id"` Name string `db:"name"` Mailbox string `db:"mailbox"` Password string `db:"password"` Sex bool `db:"sex"` }
func (*UserBaseInfo) GetClassName ¶
func (obj *UserBaseInfo) GetClassName() string
func (*UserBaseInfo) GetColumns ¶
func (obj *UserBaseInfo) GetColumns() []string
func (*UserBaseInfo) GetNameSpace ¶
func (obj *UserBaseInfo) GetNameSpace() string
func (*UserBaseInfo) GetNoneIncrementColumns ¶
func (obj *UserBaseInfo) GetNoneIncrementColumns() []string
func (*UserBaseInfo) GetPrimaryKey ¶
func (obj *UserBaseInfo) GetPrimaryKey() PrimaryKey
func (*UserBaseInfo) GetTableName ¶
func (obj *UserBaseInfo) GetTableName() string
func (*UserBaseInfo) Validate ¶
func (obj *UserBaseInfo) Validate() error
type UserBlogs ¶
func (*UserBlogs) GetClassName ¶
func (*UserBlogs) GetColumns ¶
func (*UserBlogs) GetNameSpace ¶
func (*UserBlogs) GetNoneIncrementColumns ¶
func (*UserBlogs) GetPrimaryKey ¶
func (obj *UserBlogs) GetPrimaryKey() PrimaryKey
func (*UserBlogs) GetTableName ¶
type UserId ¶
! relation
func (*UserId) GetClassName ¶
func (*UserId) GetIndexes ¶
func (*UserId) GetStoreType ¶
type UserIdBlogIdOfUserBlogsPK ¶
func (*UserIdBlogIdOfUserBlogsPK) Columns ¶
func (u *UserIdBlogIdOfUserBlogsPK) Columns() []string
func (*UserIdBlogIdOfUserBlogsPK) Key ¶
func (u *UserIdBlogIdOfUserBlogsPK) Key() string
func (*UserIdBlogIdOfUserBlogsPK) Parse ¶
func (u *UserIdBlogIdOfUserBlogsPK) Parse(key string) error
func (*UserIdBlogIdOfUserBlogsPK) SQLFormat ¶
func (u *UserIdBlogIdOfUserBlogsPK) SQLFormat() string
func (*UserIdBlogIdOfUserBlogsPK) SQLParams ¶
func (u *UserIdBlogIdOfUserBlogsPK) SQLParams() []interface{}
type UserIdBlogIdOfUserBlogsRNG ¶
type UserIdBlogIdOfUserBlogsRNG struct { UserId int32 BlogIdBegin int64 BlogIdEnd int64 // contains filtered or unexported fields }
func (*UserIdBlogIdOfUserBlogsRNG) Begin ¶
func (u *UserIdBlogIdOfUserBlogsRNG) Begin() int64
func (*UserIdBlogIdOfUserBlogsRNG) End ¶
func (u *UserIdBlogIdOfUserBlogsRNG) End() int64
func (*UserIdBlogIdOfUserBlogsRNG) IncludeBegin ¶
func (u *UserIdBlogIdOfUserBlogsRNG) IncludeBegin(f bool)
func (*UserIdBlogIdOfUserBlogsRNG) IncludeEnd ¶
func (u *UserIdBlogIdOfUserBlogsRNG) IncludeEnd(f bool)
func (*UserIdBlogIdOfUserBlogsRNG) Key ¶
func (u *UserIdBlogIdOfUserBlogsRNG) Key() string
func (*UserIdBlogIdOfUserBlogsRNG) Limit ¶
func (u *UserIdBlogIdOfUserBlogsRNG) Limit(n int)
func (*UserIdBlogIdOfUserBlogsRNG) Offset ¶
func (u *UserIdBlogIdOfUserBlogsRNG) Offset(n int)
func (*UserIdBlogIdOfUserBlogsRNG) PositionOffsetLimit ¶
func (u *UserIdBlogIdOfUserBlogsRNG) PositionOffsetLimit(len int) (int, int)
func (*UserIdBlogIdOfUserBlogsRNG) RNGRelation ¶
func (u *UserIdBlogIdOfUserBlogsRNG) RNGRelation(store *orm.RedisStore) RangeRelation
func (*UserIdBlogIdOfUserBlogsRNG) Revert ¶
func (u *UserIdBlogIdOfUserBlogsRNG) Revert(b bool)
func (*UserIdBlogIdOfUserBlogsRNG) SQLFormat ¶
func (u *UserIdBlogIdOfUserBlogsRNG) SQLFormat(limit bool) string
func (*UserIdBlogIdOfUserBlogsRNG) SQLLimit ¶
func (u *UserIdBlogIdOfUserBlogsRNG) SQLLimit() int
func (*UserIdBlogIdOfUserBlogsRNG) SQLParams ¶
func (u *UserIdBlogIdOfUserBlogsRNG) SQLParams() []interface{}
type UserLocation ¶
type UserLocation struct { Key string `db:"key" json:"key"` Longitude float64 `db:"longitude" json:"longitude"` Latitude float64 `db:"latitude" json:"latitude"` Value int32 `db:"value" json:"value"` }
! relation
func (*UserLocation) GetClassName ¶
func (relation *UserLocation) GetClassName() string
func (*UserLocation) GetIndexes ¶
func (relation *UserLocation) GetIndexes() []string
func (*UserLocation) GetStoreType ¶
func (relation *UserLocation) GetStoreType() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.