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
Package model @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central 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 ConfigDecode ¶
type ConfigEncode ¶
type ConfigEncode struct {
Alpine *alpine.AlpineConfig `dc:"持久化Alpine存储"`
Golang *golang.GolangConfig `dc:"持久化Golang存储"`
Maven *maven.MavenConfig `dc:"持久化Maven存储"`
Python *python.PythonConfig `dc:"持久化Python存储"`
}
type GetDbFile ¶
type GetDbFile struct {
AbsolutePath string `json:"absolutePath" dc:"文件绝对路径"`
Size int `json:"size" dc:"文件大小"`
}
GetDbFile 获取库下所有文件记录
type MavenRepository ¶
type MavenRepository struct {
Id string `json:"id" dc:"仓库ID"`
Name string `json:"name" dc:"仓库名字, 随意,唯一即可"`
Mode int `json:"mode" default:"6" dc:"模式,默认为6,参数描述:0 无效 2 仅可写 4 仅可读 6 可读写"`
Auth bool `json:"auth" dc:"是否鉴权, 默认鉴权,参数描述:true 鉴权 false不鉴权"`
Cache bool `json:"cache" dc:"是否缓存镜像文件, 默认缓存,参数描述:true 缓存 false不缓存"`
}
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",
}