Documentation ¶
Overview ¶
Package model @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Package model @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Package model @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDbFile ¶
type GetDbFile struct { AbsolutePath string `json:"absolutePath" dc:"文件绝对路径"` Size int `json:"size" dc:"文件大小"` }
GetDbFile 获取库下所有文件记录
type Pings ¶
type Pings struct { Address string `json:"address" dc:"地址"` Delayed int `json:"delayed" dc:"延时状态"` }
Pings 检查网络状态
type RemoteUser ¶
type RemoteUser struct { RealGroups []string `yaml:"real_groups" dc:"实际分组"` Groups []string `yaml:"groups" dc:"分组"` Name string `yaml:"name" dc:"用户"` Password string `yaml:"password" dc:"密码"` }
RemoteUser 请求上下文结构
type SyncMirrors ¶
type SyncMirrors struct { Domain string `json:"domain" dc:"Mirrors镜像主站地址"` LocalPath string `json:"localPath" dc:"存储路径"` Total int `json:"total" dc:"共计"` ObjectsInfo *cacheModel.ObjectsInfo `json:"objectsInfo" dc:"数据对象"` }
SyncMirrors 同步官网数据实体
type UserRevision ¶
type UserRevision struct { Id string `yaml:"_id" dc:"ID"` Name string `yaml:"name" dc:"用户名称"` Password string `yaml:"password" dc:"用户密码"` Type string `yaml:"type" dc:"类型"` Roles []string `yaml:"roles" dc:"角色"` Date string `yaml:"date" dc:"时间"` }
UserRevision 请求上下文结构 *
req.body = { _id: "org.couchdb.user:jjjj", name: "jjjj", password: "jjjj", type: "user", roles: [], date: "2022-07-08T15:51:04.002Z", }
Click to show internal directories.
Click to hide internal directories.