enums

package
v0.0.0-...-a6b6bab Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package enums @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 CosType

type CosType int //代理仓库对象存储服务类型
const (
	EmbedFs CosType = iota //默认本地存储
	Leveldb                //本地持久化的key-value数据
	Minio                  //minio缓存存储
	Qiniu                  //qiniu缓存存储
	Tencent                //tencent缓存存储
)

func GetCosType

func GetCosType(str string) CosType

GetCosType 根据key枚举字符串获取枚举对象

func (CosType) String

func (p CosType) String() string

String 根据枚举对象获取key枚举字符串

Jump to

Keyboard shortcuts

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