You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package stgglb
-
- import (
- "gitlink.org.cn/cloudream/jcs-pub/common/types"
- )
-
- type LocalMachineInfo struct {
- Location types.Location `json:"location"`
- }
-
- var Local *LocalMachineInfo
-
- // 是否是独立运行模式。只针对Client
- var StandaloneMode bool
-
- // 当前Client服务登录的用户的ID,如果是Standalone模式,则为0。TODO 临时解决办法
- var UserID types.UserID
-
- // InitLocal
- //
- // @Description: 初始化本地机器信息
- // @param info
- func InitLocal(info LocalMachineInfo) {
- Local = &info
- }
|