Documentation
¶
Index ¶
- Constants
- func IsSameDomainValue(a, b DomainValue) bool
- type Account
- type AvatarId
- type Bio
- type City
- type DomainValue
- type Email
- type FollowerInfo
- type FollowerUserInfo
- type Identity
- type Name
- type Password
- type Phone
- type PlatformToken
- type PlatformUser
- type Province
- type User
- type UserAvatarSetEvent
- type UserBioSetEvent
- type UserInfo
- type UserRegInfo
- type UserSignedUpEvent
- type WhiteListInfo
- type WhiteListType
Constants ¶
View Source
const ( WhitelistTypeCloud = "cloud" WhitelistTypeMultiCloud = "multi-cloud" WhitelistTypeInference = "inference" )
Variables ¶
This section is empty.
Functions ¶
func IsSameDomainValue ¶
func IsSameDomainValue(a, b DomainValue) bool
Types ¶
type AvatarId ¶
type AvatarId interface {
AvatarId() string
DomainValue
}
AvatarId
func NewAvatarId ¶
type FollowerInfo ¶
type FollowerUserInfo ¶
type PlatformToken ¶
type PlatformUser ¶
type User ¶
type User struct {
Id string
Email Email
Account Account
Bio Bio
AvatarId AvatarId
PlatformUser PlatformUser
PlatformToken PlatformToken
CourseAgreement string
FinetuneAgreement string
UserAgreement string
Version int
// following fields is not under the controlling of version
FollowerCount int
FollowingCount int
IsAgreePrivacy bool
}
user
func (*User) RevokePrivacy ¶ added in v1.6.1
func (u *User) RevokePrivacy()
type UserAvatarSetEvent ¶
type UserBioSetEvent ¶
type UserRegInfo ¶
type UserRegInfo struct {
Account types.Account
Name Name
City City
Email Email
Phone Phone
Identity Identity
Province Province
Detail map[string]string
Version int
}
register
type UserSignedUpEvent ¶
type WhiteListInfo ¶
type WhiteListInfo struct {
Account types.Account
Type WhiteListType
Enabled bool
StartTime int64
EndTime int64
}
whitelist
func (WhiteListInfo) Enable ¶
func (w WhiteListInfo) Enable() bool
type WhiteListType ¶
type WhiteListType interface {
WhiteListType() string
}
WhiteList Type
func NewWhiteListType ¶
func NewWhiteListType(w string) (WhiteListType, error)
Click to show internal directories.
Click to hide internal directories.