Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnSave func(*Config)
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `form:"host"` Port int Password []byte Salt []byte Directory string `form:"directory"` HashLen int `form:"id-size"` MaxAgeEnable bool `form:"enable-age-prune"` Age int `form:"max-age"` // max age of uploads in days MaxSizeEnable bool `form:"enable-size-prune"` Size int64 `form:"max-size"` // max total size of uploads in MB AppendExt bool `form:"append-ext"` // append extensions to returned file URLs TwitterCardEnable bool `form:"twitter-card"` // enable Twitter Card preview for embeddable files TwitterHandle string `form:"twitter-handle"` SyntaxEnable bool `form:"syntax-enable"` // enable syntax highlighting for text files SyntaxTheme string `form:"syntax-theme"` // Chroma syntax highlight theme }
Config is a global configuration for Airlift.
var (
Default Config
)
func (*Config) ProcessHash ¶
Click to show internal directories.
Click to hide internal directories.