constant

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath = "/config/config.yaml"

	OpenIMConfig = "OpenIMConfig" // environment variables
)

config path

View Source
const (
	// verificationCode used for.
	VerificationCodeForRegister      = 1 // Register
	VerificationCodeForResetPassword = 2 // Reset password
	VerificationCodeForLogin         = 3 // Login

	VerificationCodeForRegisterSuffix = "_forRegister"
	VerificationCodeForResetSuffix    = "_forReset"
	VerificationCodeForLoginSuffix    = "_forLogin"
)
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 (
	OrdinaryUserLevel = 1
	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 (
	OtherType = 1
	VideoType = 2
	ImageType = 3
)

minioUpload.

View Source
const (
	ActionAllow     = 0
	ActionForbidden = 1
)

callback Action.

View Source
const (
	ScreenInvitationRegisterAll     = 0 // All
	ScreenInvitationRegisterUsed    = 1 // Used
	ScreenInvitationRegisterNotUsed = 2 // Unused
)
View Source
const (
	UserBlock   = 1 // Account ban
	UserUnblock = 2 // Unban
)

1 block; 2 unblock.

View Source
const (
	NormalUser = 1
	AdminUser  = 2
)
View Source
const (
	DoNotDisturbModeDisable = 1
	DoNotDisturbModeEnable  = 2
)
View Source
const (
	AllowAddFriend    = 1
	NotAllowAddFriend = 2
)
View Source
const (
	AllowBeep    = 1
	NotAllowBeep = 2
)
View Source
const (
	AllowVibration    = 1
	NotAllowVibration = 2
)
View Source
const (
	AllowSendMsgNotFriend    = 1
	NotAllowSendMsgNotFriend = 2
)
View Source
const (
	NotNeedInvitationCodeRegister = 0 // No invitation code required
	NeedInvitationCodeRegister    = 1 // Invitation code required
)
View Source
const (
	StatusOnShelf = 1 // OnShelf
	StatusUnShelf = 2 // UnShelf
)

mini-app

View Source
const (
	LimitIP    = 1
	NotLimitIP = 0
)
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 (
	RpcOperationID = constant.OperationID
	RpcOpUserID    = constant.OpUserID
	RpcOpUserType  = "opUserType"
)

const OperationID = "operationID" const OpUserID = "opUserID".

View Source
const (
	DefaultAllowVibration = 1
	DefaultAllowBeep      = 1
	DefaultAllowAddFriend = 1
)
View Source
const (
	FinDAllUser    = 0
	FindNormalUser = 1
)
View Source
const (
	EmailRegister = 1
	PhoneRegister = 2
)
View Source
const (
	ShowNumber             = 1000
	StatisticsTimeInterval = 60
	MaxNotificationNum     = 500
)
View Source
const CtxApiToken = "api-token"
View Source
const DefaultDiscoverPageURL = "https://doc.rentsoft.cn/#/"

Default discovery page

View Source
const DefaultPlatform = 1
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