enums

package
v0.0.0-...-e6fd437 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiskStatusNormal = DiskStatus(iota + 1)
	DiskStatusBroken
	DiskStatusRepairing
	DiskStatusRepaired
	DiskStatusDropped
	DiskStatusDropping
	DiskStatusMax
)
View Source
const (
	ModeTest = "test"
	ModeDev  = "dev"
	ModeProd = "prod"
)
View Source
const (
	ASC  = "asc"
	DESC = "desc"
)
View Source
const (
	UserTypeRoot   = 1
	UserTypeAdmin  = 2
	UserTypeNormal = 3
)
View Source
const LoginUser = "login_user"

Variables

View Source
var VolTypeMsgMap = map[VolType]string{
	VolTypeStandard:     "标准卷",
	VolTypeLowFrequency: "低频卷",
}

Functions

func GetGinMode

func GetGinMode(mode string) string

Types

type DiskStatus

type DiskStatus int

type ReadOnlyOp

type ReadOnlyOp int16
var (
	NullParam ReadOnlyOp = 0
	ReadOnly  ReadOnlyOp = 1
	WriteOnly ReadOnlyOp = 2
)

type VolType

type VolType int
const (
	VolTypeStandard VolType = iota
	VolTypeLowFrequency
)

Jump to

Keyboard shortcuts

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