client

package
v0.0.0-...-f55c371 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = cCacheConfig{}
)

Functions

This section is empty.

Types

type ClientV1

type ClientV1 struct {
	CosType enums.CosType      //代理仓库缓存类型
	Service service.OssService //对象存储服务接口
}

func Dial

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

Dial 创建缓存客户端 @param cosType 代理仓库对象存储服务类型 @param proxy 代理仓库类型

type ConfigEncode

type ConfigEncode struct {
	EmbedFs embedfs.EmbedFs `yaml:"embedFs" dc:"本地存储文件"`
	Nutsdb  nutsdb.Nutsdb   `yaml:"nutsdb" dc:"持久化nutsdb存储"`
	Minio   minio.Minio     `yaml:"minio" dc:"minio存储"`
	Qiniu   qiniu.Qiniu     `yaml:"qiniu" dc:"qiniu存储"`
	Tencent tencent.Tencent `yaml:"tencent" dc:"tencent存储"`
}

type CosType

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

Jump to

Keyboard shortcuts

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