Documentation ¶
Index ¶
Constants ¶
View Source
const (
TokenExpirationTime = time.Hour * 2
)
View Source
const (
WSWriteDeadline = 10 * time.Second
)
Variables ¶
View Source
var (
NonModifiableFieldsForNonAdmin = []string{"Username", "Scope", "LockPassword", "Perm", "Commands", "Rules"}
)
Functions ¶
func NewHandler ¶
func PreviewSizeNames ¶
func PreviewSizeNames() []string
PreviewSizeNames returns a list of possible string values of PreviewSize.
Types ¶
type DiskUsageResponse ¶
type ImgService ¶
type PreviewSize ¶
type PreviewSize int
ENUM( thumb big )
const ( // PreviewSizeThumb is a PreviewSize of type Thumb PreviewSizeThumb PreviewSize = iota // PreviewSizeBig is a PreviewSize of type Big PreviewSizeBig )
func ParsePreviewSize ¶
func ParsePreviewSize(name string) (PreviewSize, error)
ParsePreviewSize attempts to convert a string to a PreviewSize
func (PreviewSize) MarshalText ¶
func (x PreviewSize) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method
func (*PreviewSize) Scan ¶
func (x *PreviewSize) Scan(value interface{}) error
Scan implements the Scanner interface.
func (PreviewSize) String ¶
func (x PreviewSize) String() string
String implements the Stringer interface.
func (*PreviewSize) UnmarshalText ¶
func (x *PreviewSize) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method
Click to show internal directories.
Click to hide internal directories.