Documentation ¶
Overview ¶
Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Package python @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 ¶
Types ¶
type PythonConfig ¶
type PythonConfig struct {
Mirror string `` /* 166-byte string literal not displayed */
}
type PythonProxy ¶
func (*PythonProxy) GetProjectSyncList ¶
func (c *PythonProxy) GetProjectSyncList(uri, divHtml string)
GetProjectSyncList 同步官网数据 @param uri http://pypi.tuna.tsinghua.edu.cn/simple/django/ @param divHtml 获取到的html数据
func (*PythonProxy) GetVersion ¶
func (c *PythonProxy) GetVersion(header string) string
GetVersion 根据请求头部获取python版本
func (*PythonProxy) Packages ¶
func (c *PythonProxy) Packages(moduleName string) (u *cacheModel.ObjectsInfo, err error)
Packages 获取文件 存在则直接返回,不存在则缓存再返回 @param moduleName django/Django-3.2.23-py3-none-any.whl
func (*PythonProxy) Simple ¶
func (c *PythonProxy) Simple() (u *cacheModel.ObjectsInfo, err error)
Simple 发布历史获取当前插件列表 最终请求示例: https://pypi.tuna.tsinghua.edu.cn/packages/c9/69/72663af69f1a70fa186813220c8ec5ce7f9056b6d987077e2c38ed794bee/Django-3.2.23-py3-none-any.whl https://pypi.tuna.tsinghua.edu.cn/packages/16/1e/39653f43fc481d5e07dbc7536dfd4f7dbac19fafd041f8036fb3b7d610bf/django_ckc-0.0.10-py3-none-any.whl#sha256=88a5e08e2c2f8243ad5093bf54de03943d3b53cb8d8fb5259bc3a502191f720a @param artifactId django