Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { WhiteList WhiteList `json:"white_list" toml:"white_list"` Rule []Rule `json:"rule" toml:"rule"` MIMEMap map[string]bool }
func SingletonConf ¶
func SingletonConf() *Config
type Rule ¶
type Rule struct { Id int64 `json:"id" toml:"id"` Name string `json:"name" toml:"name"` Description string `json:"description" toml:"description"` FilePathPattern string `json:"file_path_pattern" toml:"file_path_pattern"` Level string `json:"level" toml:"level"` MIME string `json:"mime" toml:"mime"` MatchPattern string `json:"match_pattern" toml:"match_pattern"` Env string `json:"env" toml:"env"` }
Click to show internal directories.
Click to hide internal directories.