Documentation
¶
Index ¶
Constants ¶
const ( ConfigPath = "/config/config.yaml" OpenIMConfig = "OpenIMConfig" // environment variables )
config path
const ( // verificationCode used for. VerificationCodeForRegister = 1 // Register VerificationCodeForResetPassword = 2 // Reset password VerificationCodeForLogin = 3 // Login VerificationCodeForRegisterSuffix = "_forRegister" VerificationCodeForResetSuffix = "_forReset" VerificationCodeForLoginSuffix = "_forLogin" )
const ( BlockUser = 1 UnblockUser = 2 )
block unblock.
const ( Email = "email" Phone = "phone" Account = "account" )
AccountType.
const ( UserMode = "user" AdminMode = "admin" )
Mode.
const ( OrdinaryUserLevel = 1 NormalAdmin = 80 AdvancedUserLevel = 100 )
user level.
const ( OrdinaryUserAddFriendEnable = 1 // Allow ordinary users to add friends OrdinaryUserAddFriendDisable = -1 // Do not allow ordinary users to add friends )
AddFriendCtrl.
const ( OtherType = 1 VideoType = 2 ImageType = 3 )
minioUpload.
const ( ActionAllow = 0 ActionForbidden = 1 )
callback Action.
const ( ScreenInvitationRegisterAll = 0 // All ScreenInvitationRegisterUsed = 1 // Used ScreenInvitationRegisterNotUsed = 2 // Unused )
const ( UserBlock = 1 // Account ban UserUnblock = 2 // Unban )
1 block; 2 unblock.
const ( NormalUser = 1 AdminUser = 2 )
const ( DoNotDisturbModeDisable = 1 DoNotDisturbModeEnable = 2 )
const ( AllowAddFriend = 1 NotAllowAddFriend = 2 )
const ( AllowBeep = 1 NotAllowBeep = 2 )
const ( AllowVibration = 1 NotAllowVibration = 2 )
const ( AllowSendMsgNotFriend = 1 NotAllowSendMsgNotFriend = 2 )
const ( NotNeedInvitationCodeRegister = 0 // No invitation code required NeedInvitationCodeRegister = 1 // Invitation code required )
const ( StatusOnShelf = 1 // OnShelf StatusUnShelf = 2 // UnShelf )
mini-app
const ( LimitIP = 1 NotLimitIP = 0 )
const ( LimitNil = 0 // None LimitEmpty = 1 // Neither are restricted LimitOnlyLoginIP = 2 // Only login is restricted LimitOnlyRegisterIP = 3 // Only registration is restricted LimitLoginIP = 4 // Restrict login LimitRegisterIP = 5 // Restrict registration LimitLoginRegisterIP = 6 // Restrict both login and registration )
const ( InvitationCodeAll = 0 // All InvitationCodeUsed = 1 // Used InvitationCodeUnused = 2 // Unused )
const ( RpcOperationID = constant.OperationID RpcOpUserID = constant.OpUserID RpcOpUserType = "opUserType" )
const OperationID = "operationID" const OpUserID = "opUserID".
const ( DefaultAllowVibration = 1 DefaultAllowBeep = 1 DefaultAllowAddFriend = 1 )
const ( FinDAllUser = 0 FindNormalUser = 1 )
const ( EmailRegister = 1 PhoneRegister = 2 )
const ( ShowNumber = 1000 StatisticsTimeInterval = 60 MaxNotificationNum = 500 )
const CtxApiToken = "api-token"
const DefaultDiscoverPageURL = "https://doc.rentsoft.cn/#/"
Default discovery page
const DefaultPlatform = 1
const (
LenRandomNum = 1000000
)
const LogFileName = "chat.log"
const NeedInvitationCodeRegisterConfigKey = "needInvitationCodeRegister"
const RpcCustomHeader = constant.RpcCustomHeader
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.