config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 5 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.

Index

Constants

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

Variables

View Source
var ChannelQueueSize int = 1000
View Source
var CountQueueSize int = 3000
View Source
var DataDir = ""
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 MyConf map[string]map[string]string
View Source
var TLS bool = false
View Source
var TLSServerCrtFile string = ""
View Source
var TLSServerKeyFile string = ""
View Source
var ToServerQueueSize int = 5000

Functions

func GetConf

func GetConf(module string) map[string]string

func GetConfigVal

func GetConfigVal(module string, key string) string

func LoadConf

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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