config

package
v0.0.0-...-61472b1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StoreDir string

	StoreApiHost string
	StoreApiPort int

	MasterHost string
	MasterPort int

	MountDir string

	// master meta type
	MetaType string

	//Redis
	RedisHost string
	RedisPort int
	Password  string
	Database  int

	// Hbase
	HbaseHost string

	// Cassandra
	CassandraHosts []string
	Keyspace       string

	// ClickHouse
	ClickHouseHost string

	// LevelDB
	BlockCacheCapacity            int
	WriteBuffer                   int
	CompactionTableSizeMultiplier float64

	ExpireTime   time.Duration
	PurgeTime    time.Duration
	MaxVolumeNum int

	//Cache config
	NumCounters int64
	MaxCost     int64
	BufferItem  int64
}

func NewConfig

func NewConfig(conf string) (c *Config, err error)

NewConfig new a config.

Jump to

Keyboard shortcuts

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