Versions in this module Expand all Collapse all v0 v0.9.3 Jun 14, 2019 v0.9.2 May 10, 2019 v0.9.0 Mar 6, 2019 Changes in this version + const ERROR_SPLIT + const GEO + const HASH + const LIST + const PAIR + const SET + const ZSET + var BlogColumns = struct{ ... } + var BlogElasticFields = struct{ ... } + var BlogElasticMgr = &_BlogElasticMgr + var BlogMgr *_BlogMgr + var IndexedBlogElasticFields = struct{ ... } + var IndexedBlogElasticMgr = &_IndexedBlogElasticMgr + var IndexedBlogMgr *_IndexedBlogMgr + var UserBaseInfoColumns = struct{ ... } + var UserBaseInfoMgr *_UserBaseInfoMgr + var UserBlogsColumns = struct{ ... } + var UserBlogsMgr *_UserBlogsMgr + var UserColumns = struct{ ... } + var UserInfoMgr *_UserInfoMgr + var UserMgr *_UserMgr + 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 struct + AgeBegin int64 + AgeEnd int64 + 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 struct + Key string + Score float64 + Value string + func (relation *AgeOfUserRNGRelation) GetClassName() string + func (relation *AgeOfUserRNGRelation) GetIndexes() []string + func (relation *AgeOfUserRNGRelation) GetStoreType() string + type Blog struct + Content string + CreatedAt time.Time + Id int32 + Readed int32 + Status int32 + Title string + UpdatedAt time.Time + UserId int32 + func (obj *Blog) GetClassName() string + func (obj *Blog) GetColumns() []string + func (obj *Blog) GetNameSpace() string + func (obj *Blog) GetNoneIncrementColumns() []string + func (obj *Blog) GetPrimaryKey() PrimaryKey + func (obj *Blog) GetTableName() string + func (obj *Blog) Validate() error + type DBFetcher interface + FetchBySQL func(sql string, args ...interface{}) ([]interface{}, error) + type ESClient struct + IndexName string + func ElasticClient() *ESClient + func (e *ESClient) IndexService(index string) *elastic.IndexService + func (e *ESClient) PutMappingService(index string) *elastic.PutMappingService + type ESConfig struct + EnableGzip bool + Endpoints []string + HTTPTimeout time.Duration + IndexName string + MaxRetries int + func (e *ESConfig) NewClient() (*ESClient, error) + type Finder interface + Find func(index Index) (int64, []PrimaryKey, error) + FindOne func(unique Unique) (PrimaryKey, error) + Range func(scope Range) (int64, []PrimaryKey, error) + RangeRevert func(scope Range) (int64, []PrimaryKey, error) + type IdOfIndexedBlogPK struct + Id int32 + func (u *IdOfIndexedBlogPK) Columns() []string + func (u *IdOfIndexedBlogPK) Key() string + func (u *IdOfIndexedBlogPK) Parse(key string) error + func (u *IdOfIndexedBlogPK) SQLFormat() string + func (u *IdOfIndexedBlogPK) SQLParams() []interface{} + type IdOfIndexedBlogRNG struct + IdBegin int64 + IdEnd int64 + 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 struct + Id int32 + func (u *IdOfUserBaseInfoPK) Columns() []string + func (u *IdOfUserBaseInfoPK) Key() string + func (u *IdOfUserBaseInfoPK) Parse(key string) error + func (u *IdOfUserBaseInfoPK) SQLFormat() string + func (u *IdOfUserBaseInfoPK) SQLParams() []interface{} + type IdOfUserBaseInfoRNG struct + IdBegin int64 + IdEnd int64 + 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 struct + Id int32 + func (u *IdOfUserPK) Columns() []string + func (u *IdOfUserPK) Key() string + func (u *IdOfUserPK) Parse(key string) error + func (u *IdOfUserPK) SQLFormat() string + func (u *IdOfUserPK) SQLParams() []interface{} + type IdOfUserRNG struct + IdBegin int64 + IdEnd int64 + 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 struct + Key string + Score float64 + Value string + func (relation *IdOfUserRNGRelation) GetClassName() string + func (relation *IdOfUserRNGRelation) GetIndexes() []string + func (relation *IdOfUserRNGRelation) GetStoreType() string + type IdUserIdOfBlogPK struct + Id int32 + UserId int32 + func (u *IdUserIdOfBlogPK) Columns() []string + func (u *IdUserIdOfBlogPK) Key() string + func (u *IdUserIdOfBlogPK) Parse(key string) error + func (u *IdUserIdOfBlogPK) SQLFormat() string + func (u *IdUserIdOfBlogPK) SQLParams() []interface{} + type IdUserIdOfBlogRNG struct + Id int32 + UserIdBegin int64 + UserIdEnd int64 + 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 interface + IDXRelation func(store *orm.RedisStore) IndexRelation + Key func() string + PositionOffsetLimit func(len int) (int, int) + type IndexRelation interface + Find func(key string) ([]string, error) + type IndexedBlog struct + Content string + CreatedAt time.Time + Hash string + Id int32 + Readed int32 + Title string + UpdatedAt time.Time + UserId int32 + 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 struct + Mailbox string + Password string + 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 struct + Mailbox string + Password string + 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 struct + Key string + Value string + func (relation *MailboxPasswordOfUserUKRelation) GetClassName() string + func (relation *MailboxPasswordOfUserUKRelation) GetIndexes() []string + func (relation *MailboxPasswordOfUserUKRelation) GetStoreType() string + type MySQLConfig struct + ConnMaxLifeTime time.Duration + Database string + Host string + Password string + PoolSize int + Port int + UserName string + type NameOfUserBaseInfoIDX struct + Name string + 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 interface + GetClassName func() string + GetIndexes func() []string + GetPrimaryName func() string + GetStoreType func() string + type PrimaryKey interface + Columns func() []string + Key func() string + Parse func(key string) error + SQLFormat func() string + SQLParams func() []interface{} + type Range interface + Begin func() int64 + End func() int64 + IncludeBegin func(flag bool) + IncludeEnd func(flag bool) + Key func() string + PositionOffsetLimit func(len int) (int, int) + RNGRelation func(store *orm.RedisStore) RangeRelation + Revert func(flag bool) + type RangeRelation interface + Range func(key string, start, end int64) ([]string, error) + RangeRevert func(key string, start, end int64) ([]string, error) + type RedisConfig struct + Host string + Password string + Port int + type SQL interface + Limit func(n int) + Offset func(n int) + SQLFormat func(limit bool) string + SQLLimit func() int + SQLParams func() []interface{} + type SexOfUserIDX struct + Sex bool + 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 struct + Key string + Value string + func (relation *SexOfUserIDXRelation) GetClassName() string + func (relation *SexOfUserIDXRelation) GetIndexes() []string + func (relation *SexOfUserIDXRelation) GetStoreType() string + type SexUserLocation struct + Key string + Latitude float64 + Longitude float64 + Value int32 + func (relation *SexUserLocation) GetClassName() string + func (relation *SexUserLocation) GetIndexes() []string + func (relation *SexUserLocation) GetStoreType() string + type StatusOfBlogIDX struct + Status int32 + 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 interface + Key func() string + UKRelation func(store *orm.RedisStore) UniqueRelation + type UniqueRelation interface + FindOne func(key string) (string, error) + type User struct + Age int32 + CreatedAt time.Time + DeletedAt *time.Time + Description string + HeadUrl string + Id int32 + Latitude float64 + Longitude float64 + Mailbox string + Name string + Password string + Sex bool + Status int32 + UpdatedAt time.Time + 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 struct + Id int32 + Mailbox string + Name string + Password string + Sex bool + 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 struct + BlogId int32 + UserId int32 + 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 struct + Key string + Value int32 + func (relation *UserId) GetClassName() string + func (relation *UserId) GetIndexes() []string + func (relation *UserId) GetStoreType() string + type UserIdBlogIdOfUserBlogsPK struct + BlogId int32 + UserId int32 + func (u *UserIdBlogIdOfUserBlogsPK) Columns() []string + func (u *UserIdBlogIdOfUserBlogsPK) Key() string + func (u *UserIdBlogIdOfUserBlogsPK) Parse(key string) error + func (u *UserIdBlogIdOfUserBlogsPK) SQLFormat() string + func (u *UserIdBlogIdOfUserBlogsPK) SQLParams() []interface{} + type UserIdBlogIdOfUserBlogsRNG struct + BlogIdBegin int64 + BlogIdEnd int64 + UserId int32 + 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 struct + Id int32 + Mailbox string + Name string + Password string + Sex bool + type UserLocation struct + Key string + Latitude float64 + Longitude float64 + Value int32 + func (relation *UserLocation) GetClassName() string + func (relation *UserLocation) GetIndexes() []string + func (relation *UserLocation) GetStoreType() string