config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 59

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cblogger *logrus.Logger

Functions

func GetConfigString

func GetConfigString(configInfos *CBSTORECONFIG) string

func ReplaceEnvPath

func ReplaceEnvPath(str string) string

$ABC/def ==> /abc/def

Types

type CBSTORECONFIG

type CBSTORECONFIG struct {
	STORETYPE string // option: NUTSDB | ETCD

	NUTSDB struct {
		DBPATH      string
		SEGMENTSIZE int64
	}

	ETCD struct {
		ETCDSERVERPORT string
	}
}

func GetConfigInfos

func GetConfigInfos() *CBSTORECONFIG

Jump to

Keyboard shortcuts

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