client

package
v0.0.0-...-33d5664 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

Package client @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package client @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 ClientV1

type ClientV1 struct {
	Proxy   string             //缓存类型:如maven/golang/docker/npm/python等等
	CosType enums.CosType      //代理仓库缓存类型
	Service service.OssService //对象存储服务接口
}

func Dial

func Dial(ctx context.Context, cosType string, proxy string) *ClientV1

Dial 创建缓存客户端 @param cosType 代理仓库对象存储服务类型 @param proxy 缓存类型 @return service.OssService接口构造,如 EmbedFs/Leveldb

type CosType

type CosType int //代理仓库对象存储服务类型

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL