config

package
v1.7.4-release Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

View Source
const VERSION = "v1.7.4-release"

Variables

View Source
var BifrostAdminTemplateDir string = ""
View Source
var BifrostConfigFile string = ""
View Source
var BifrostDir string = ""

Bifrost 根目录文件夹绝对路径

View Source
var BifrostLogDir string = ""
View Source
var BifrostPidFile string = ""
View Source
var BifrostPluginTemplateDir string = ""
View Source
var ChannelQueueSize int = 1000
View Source
var CountQueueSize int = 3000
View Source
var DataDir = ""
View Source
var DynamicPlugin bool = false
View Source
var FileQueueUsable bool = true

是否开启文件队列,false 的话将不会启动文件队列功能

View Source
var FileQueueUsableCount uint32 = 10

配置 FileQueueUsableCountTimeDiff 参数 使用

View Source
var FileQueueUsableCountTimeDiff int64 = 5000

多少毫秒内有数据的情况下,写入 FileQueueUsableCount 次 内存队列后,队列都是满的状态 ,则启用 文件队列

View Source
var KeyCachePoolSize int = 50
View Source
var Listen string = "0.0.0.0:21036"
View Source
var MyConf map[string]map[string]string
View Source
var PluginCommitTimeOut int = 5

在没有数据的情况下,间隔多久提交一次插件,单位 秒

View Source
var PluginSyncRetrycTime int = 5

在同步出错的情况下,每2次重试之后 间隔多久再重试 ,单位 秒

View Source
var RefuseIpLoginFailedCount int = 10

每个IP连续登入失败多少次,则自动封IP,拒绝登入

View Source
var RefuseIpTimeOut int64 = 14400

间隔多久解封一次IP,单位秒,默认4小时

View Source
var TLS bool = false
View Source
var TLSServerCrtFile string = ""
View Source
var TLSServerKeyFile string = ""
View Source
var ToServerQueueSize int = 5000

Functions

func DelConfig

func DelConfig(module string, key string)

func DoLoadConf

func DoLoadConf(conffile string) map[string]map[string]string

func GetConf

func GetConf(module string) map[string]string

func GetConfigVal

func GetConfigVal(module string, key string) string

func InitParam

func InitParam()

func LoadConf

func LoadConf(BifrostConfigFile string)

func SetConfigVal

func SetConfigVal(module string, key string, val string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL