23 lines
467 B
Go
23 lines
467 B
Go
package stgglb
|
|
|
|
import (
|
|
"gitlink.org.cn/cloudream/jcs-pub/coordinator/types"
|
|
)
|
|
|
|
type LocalMachineInfo struct {
|
|
UserID types.UserID `json:"userID"`
|
|
ExternalIP string `json:"externalIP"`
|
|
LocalIP string `json:"localIP"`
|
|
LocationID types.LocationID `json:"locationID"`
|
|
}
|
|
|
|
var Local *LocalMachineInfo
|
|
|
|
// InitLocal
|
|
//
|
|
// @Description: 初始化本地机器信息
|
|
// @param info
|
|
func InitLocal(info LocalMachineInfo) {
|
|
Local = &info
|
|
}
|