constant

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MountConfigFilePath = "CONFIG_PATH"
	KUBERNETES          = "kubernetes"
	ETCD                = "etcd"
)
View Source
const (
	// verificationCode used for.
	VerificationCodeForRegister      = 1 // Register
	VerificationCodeForResetPassword = 2 // Reset password
	VerificationCodeForLogin         = 3 // Login
)
View Source
const (
	BlockUser   = 1
	UnblockUser = 2
)

block unblock.

View Source
const (
	Email   = "email"
	Phone   = "phone"
	Account = "account"
)

AccountType.

View Source
const (
	UserMode  = "user"
	AdminMode = "admin"
)

Mode.

View Source
const (
	NormalAdmin       = 80
	AdvancedUserLevel = 100
)

user level.

View Source
const (
	OrdinaryUserAddFriendEnable  = 1  // Allow ordinary users to add friends
	OrdinaryUserAddFriendDisable = -1 // Do not allow ordinary users to add friends
)

AddFriendCtrl.

View Source
const (
	NormalUser = 1
	AdminUser  = 2
)
View Source
const (
	StatusOnShelf = 1 // OnShelf
	StatusUnShelf = 2 // UnShelf
)

mini-app

View Source
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
)
View Source
const (
	InvitationCodeAll    = 0 // All
	InvitationCodeUsed   = 1 // Used
	InvitationCodeUnused = 2 // Unused
)
View Source
const (
	RpcOpUserID   = constant.OpUserID
	RpcOpUserType = "opUserType"
)
View Source
const (
	DefaultAllowVibration = 1
	DefaultAllowBeep      = 1
	DefaultAllowAddFriend = 1
)
View Source
const (
	FinDAllUser    = 0
	FindNormalUser = 1
)
View Source
const (
	AccountRegister = iota
	EmailRegister
	PhoneRegister
)
View Source
const (
	GenderFemale  = 0 // female
	GenderMale    = 1 // male
	GenderUnknown = 2 // unknown
)
View Source
const (
	CredentialAccount = iota
	CredentialPhone
	CredentialEmail
)

Credential Type

View Source
const (
	ShowNumber             = 1000
	StatisticsTimeInterval = 60
	MaxNotificationNum     = 500
)
View Source
const CtxApiToken = "api-token"
View Source
const DefaultAdminLevel = 100
View Source
const LogFileName = "chat.log"
View Source
const NeedInvitationCodeRegisterConfigKey = "needInvitationCodeRegister"
View Source
const RpcCustomHeader = constant.RpcCustomHeader

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL