Documentation ¶
Index ¶
Constants ¶
View Source
const ( USER_ID uint64 = 1 << iota USER_NAME USER_AGE USER_FOLLOWINGS USER_FOLLOWERS UserFieldEnd = iota UserFieldsAll = 1<<UserFieldEnd - 1 UserFieldsExcpId = UserFieldsAll & (^USER_ID) UserFieldsExcpName = UserFieldsAll & (^USER_NAME) UserFieldsExcpAge = UserFieldsAll & (^USER_AGE) UserFieldsExcpFollowings = UserFieldsAll & (^USER_FOLLOWINGS) UserFieldsExcpFollowers = UserFieldsAll & (^USER_FOLLOWERS) UserTable = "user" UserIdCol = "id" UserNameCol = "name" UserAgeCol = "age" UserFollowingsCol = "followings" UserFollowersCol = "followers" )
View Source
const ( FOLLOW_USERID uint64 = 1 << iota FOLLOW_FOLLOWUSERID FollowFieldEnd = iota FollowFieldsAll = 1<<FollowFieldEnd - 1 FollowFieldsExcpUserId = FollowFieldsAll & (^FOLLOW_USERID) FollowFieldsExcpFollowUserId = FollowFieldsAll & (^FOLLOW_FOLLOWUSERID) FollowTable = "user_follow" FollowUserIdCol = "user_id" FollowFollowUserIdCol = "follow_user_id" )
Variables ¶
View Source
var (
FollowInstance = new(Follow)
)
View Source
var (
UserInstance = new(User)
)
Functions ¶
Types ¶
type FollowStore ¶ added in v0.6.3
func (*FollowStore) Clear ¶ added in v0.6.3
func (a *FollowStore) Clear()
func (*FollowStore) Final ¶ added in v0.6.3
func (s *FollowStore) Final(size int)
func (*FollowStore) Init ¶ added in v0.6.3
func (s *FollowStore) Init(size int)
func (*FollowStore) Ptrs ¶ added in v0.6.3
func (s *FollowStore) Ptrs(index int, ptrs []interface{})
func (*FollowStore) Realloc ¶ added in v0.6.3
func (s *FollowStore) Realloc(count int) int
Click to show internal directories.
Click to hide internal directories.