marshal

package
v0.0.0-...-52e4a05 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 1 Imported by: 9

Documentation

Overview

Package marshal @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Package marshal @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CosTypeMap

func CosTypeMap() map[string]CosType

Types

type BucketInfo

type BucketInfo struct {
	Bucket string //cos对象桶名称
	Use    int64  //存储空间(已使用)
}

type CosType

type CosType int //代理仓库对象存储服务类型
const (
	EmbedFs    CosType = iota //默认本地存储
	Nutsdb                    //本地持久化的key-value数据
	MinioCos                  //自建docker部署minio存储
	QiniuCos                  //七牛cos存储
	TencentCos                //腾讯cos存储
	AliyunCos                 //阿里云cos存储
)

func GetCosType

func GetCosType(str string) CosType

func (CosType) String

func (p CosType) String() string

type ObjectsInfo

type ObjectsInfo struct {
	Bucket   string  //cos对象桶名称
	Cache    CosType //代理仓库缓存类型
	Size     int64   //文件大小
	Name     string  //文件名称(请求的文件)
	Location string  //文件相对路径path
	Bytes    []byte  //文件对象字节
}

Jump to

Keyboard shortcuts

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