enums

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: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CosTypeMap

func CosTypeMap() map[string]CosType

CosTypeMap 获取所有cos枚举,key为枚举字符串,val为枚举对象

Types

type CosType

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

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