Documentation ¶
Index ¶
- Constants
- func ActionFileCheck(conf *ActionFile) error
- func CheckAcceptEncoding(req *bfe_http.Request) []string
- func ConvertEncodeToExt(encoding string) string
- func MimeTypeConfCheck(mimeTypeConf MimeTypeConf) error
- func MimeTypeConfConvert(mimeTypeConf *MimeTypeConf)
- func ProductRulesCheck(conf *ProductRulesFile) error
- func RuleListCheck(conf *RuleFileList) error
- func StaticConfCheck(conf StaticConfFile) error
- func StaticRuleCheck(conf StaticRuleFile) error
- type Action
- type ActionFile
- type ConfModStatic
- type MimeType
- type MimeTypeConf
- type MimeTypeTable
- type ModuleStatic
- type ModuleStaticState
- type ProductRules
- type ProductRulesFile
- type RuleFileList
- type RuleList
- type StaticConf
- type StaticConfFile
- type StaticRule
- type StaticRuleFile
- type StaticRuleTable
Constants ¶
View Source
const ( EncodeGzip = "gzip" EncodeBrotil = "br" )
View Source
const ( FileExtensionGzip = "gz" FileExtensionBrotil = "br" )
View Source
const (
ActionBrowse = "BROWSE"
)
View Source
const (
ModStatic = "mod_static"
)
Variables ¶
This section is empty.
Functions ¶
func ActionFileCheck ¶
func ActionFileCheck(conf *ActionFile) error
func CheckAcceptEncoding ¶
func ConvertEncodeToExt ¶
func MimeTypeConfCheck ¶
func MimeTypeConfCheck(mimeTypeConf MimeTypeConf) error
func MimeTypeConfConvert ¶
func MimeTypeConfConvert(mimeTypeConf *MimeTypeConf)
func ProductRulesCheck ¶
func ProductRulesCheck(conf *ProductRulesFile) error
func RuleListCheck ¶
func RuleListCheck(conf *RuleFileList) error
func StaticConfCheck ¶
func StaticConfCheck(conf StaticConfFile) error
func StaticRuleCheck ¶
func StaticRuleCheck(conf StaticRuleFile) error
Types ¶
type ActionFile ¶
type ConfModStatic ¶
type ConfModStatic struct { Basic struct { DataPath string MimeTypePath string EnableCompress bool } Log struct { OpenDebug bool } }
func (*ConfModStatic) Check ¶
func (cfg *ConfModStatic) Check(confRoot string) error
type MimeTypeConf ¶
func MimeTypeConfLoad ¶
func MimeTypeConfLoad(filename string) (MimeTypeConf, error)
type MimeTypeTable ¶
type MimeTypeTable struct {
// contains filtered or unexported fields
}
func NewMimeTypeTable ¶
func NewMimeTypeTable() *MimeTypeTable
func (*MimeTypeTable) Update ¶
func (t *MimeTypeTable) Update(conf MimeTypeConf)
type ModuleStatic ¶
type ModuleStatic struct {
// contains filtered or unexported fields
}
func NewModuleStatic ¶
func NewModuleStatic() *ModuleStatic
func (*ModuleStatic) Init ¶
func (m *ModuleStatic) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleStatic) Name ¶
func (m *ModuleStatic) Name() string
type ModuleStaticState ¶
type ProductRules ¶
type ProductRulesFile ¶
type ProductRulesFile map[string]*RuleFileList
type RuleFileList ¶
type RuleFileList []StaticRuleFile
type RuleList ¶
type RuleList []StaticRule
type StaticConf ¶
type StaticConf struct { Version string Config ProductRules }
func StaticConfLoad ¶
func StaticConfLoad(filename string) (StaticConf, error)
type StaticConfFile ¶
type StaticConfFile struct { Version *string Config *ProductRulesFile }
type StaticRule ¶
type StaticRuleFile ¶
type StaticRuleFile struct { Cond string Action *ActionFile }
type StaticRuleTable ¶
type StaticRuleTable struct {
// contains filtered or unexported fields
}
func NewStaticRuleTable ¶
func NewStaticRuleTable() *StaticRuleTable
func (*StaticRuleTable) Update ¶
func (t *StaticRuleTable) Update(conf StaticConf)
Click to show internal directories.
Click to hide internal directories.