sdkconst

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success     = "A00200"
	ParamError  = "A00400"
	NotFound    = "A00404"
	NotReady    = "A00460"
	ServerError = "A00500"
	RPCError    = "A00600"
)
View Source
const (
	UsernameHeader  = "x-username"
	GroupNameHeader = "x-group-name"
	NamespaceHeader = "x-namespace"
)
View Source
const (
	MainNamespace        = "main"
	PrivateNamespace     = "private"
	CommonNamespace      = "common"
	SiyouFSMysqlDBPrefix = "siyou"
	SiyouSysPool         = "syspool"
	UserHomeDir          = "/home"
)
View Source
const (
	FileEventAdd    = iota + 1 // file add
	FileEventDelete            // file deleted
	FileEventRename            // file rename
)

file event types

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeStatus added in v0.9.11

type ConsumeStatus int
const (
	ConsumeSuccess ConsumeStatus = iota + 1
	ConsumeRetry
	ConsumeFail
)

type MediaType added in v0.9.11

type MediaType string
const (
	MediaTypeText    MediaType = "text"
	MediaTypeImage   MediaType = "image"
	MediaTypeAudio   MediaType = "audio"
	MediaTypeVideo   MediaType = "video"
	MediaTypeMessage MediaType = "message"
)

Standard media types

const (
	MediaTypeAll        MediaType = "all"         // all types
	MediaTypeCompress   MediaType = "compress"    // package type
	MediaTypeImageVideo MediaType = "image-video" // image and video types
	MediaTypeDoc        MediaType = "doc"         // doc type
	MediaTypeBt         MediaType = "bt"          // BitTorrent type
	MediaTypeEbook      MediaType = "ebook"       // ebook type
	MediaTypeSoftware   MediaType = "software"    // soft type
	MediaTypeOther      MediaType = "other"       // other type
)

Custom media types

type TaskLevel added in v0.9.11

type TaskLevel int
const (
	HighLevel TaskLevel = iota + 1
	MidLevel
	LowLevel
)

Jump to

Keyboard shortcuts

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