Documentation
¶
Overview ¶
Copyright (c) 2019 The BFE Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019 The BFE Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( ModMarkdown = "mod_markdown" MaxBodyBytes = 32 * 1024 MarkdownContentType = "text/markdown" ConvertContentType = "text/html; charset=UTF-8" )
const DefaultRulePath = "mod_markdown/markdown_rule.data"
Variables ¶
This section is empty.
Functions ¶
func ProductRuleConfLoad ¶
Types ¶
type ConfModMarkdown ¶
type ConfModMarkdown struct { Basic struct { // md product rule data path ProductRulePath string } Log struct { // open debug log OpenDebug bool } }
func (*ConfModMarkdown) Check ¶
func (cfg *ConfModMarkdown) Check(confRoot string) error
type MarkdownRuleTable ¶
type MarkdownRuleTable struct {
// contains filtered or unexported fields
}
func NewMarkdownRuleTable ¶
func NewMarkdownRuleTable() *MarkdownRuleTable
func (*MarkdownRuleTable) Search ¶
func (t *MarkdownRuleTable) Search(product string) (*markdownRules, bool)
func (*MarkdownRuleTable) Update ¶
func (t *MarkdownRuleTable) Update(conf productRuleConf)
type ModuleMarkdown ¶
type ModuleMarkdown struct {
// contains filtered or unexported fields
}
func NewModuleMarkdown ¶
func NewModuleMarkdown() *ModuleMarkdown
func (*ModuleMarkdown) Init ¶
func (m *ModuleMarkdown) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleMarkdown) Name ¶
func (m *ModuleMarkdown) Name() string