Documentation ¶
Overview ¶
Copyright [2018] [jc3wish]
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 [2018] [jc3wish]
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 [2018] [jc3wish]
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
- Variables
- func DelConfig(module string, key string)
- func DoLoadConf(conffile string) map[string]map[string]string
- func GetConf(module string) map[string]string
- func GetConfigVal(module string, key string) string
- func InitParam()
- func LoadConf(BifrostConfigFile string)
- func SetConfigVal(module string, key string, val string)
Constants ¶
const VERSION = "v1.7.4-release"
Variables ¶
var BifrostAdminTemplateDir string = ""
var BifrostConfigFile string = ""
var BifrostDir string = ""
Bifrost 根目录文件夹绝对路径
var BifrostLogDir string = ""
var BifrostPidFile string = ""
var BifrostPluginTemplateDir string = ""
var ChannelQueueSize int = 1000
var CountQueueSize int = 3000
var DataDir = ""
var DynamicPlugin bool = false
var FileQueueUsable bool = true
是否开启文件队列,false 的话将不会启动文件队列功能
var FileQueueUsableCount uint32 = 10
配置 FileQueueUsableCountTimeDiff 参数 使用
var FileQueueUsableCountTimeDiff int64 = 5000
多少毫秒内有数据的情况下,写入 FileQueueUsableCount 次 内存队列后,队列都是满的状态 ,则启用 文件队列
var KeyCachePoolSize int = 50
var Listen string = "0.0.0.0:21036"
var MyConf map[string]map[string]string
var PluginCommitTimeOut int = 5
在没有数据的情况下,间隔多久提交一次插件,单位 秒
var PluginSyncRetrycTime int = 5
在同步出错的情况下,每2次重试之后 间隔多久再重试 ,单位 秒
var RefuseIpLoginFailedCount int = 10
每个IP连续登入失败多少次,则自动封IP,拒绝登入
var RefuseIpTimeOut int64 = 14400
间隔多久解封一次IP,单位秒,默认4小时
var TLS bool = false
var TLSServerCrtFile string = ""
var TLSServerKeyFile string = ""
var ToServerQueueSize int = 5000
Functions ¶
func GetConfigVal ¶
func SetConfigVal ¶
Types ¶
This section is empty.