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
Click to show internal directories.
Click to hide internal directories.