config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 3 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 {
	rest.RestConf
	Postgres struct {
		DataSource string
		MaxIdle    int
		MaxConn    int
	}
	TxPool struct {
		MaxPendingTxCount int
	}
	CacheRedis    cache.CacheConf
	LogConf       logx.LogConf
	CoinMarketCap struct {
		Url   string
		Token string
	}
	MemCache struct {
		AccountExpiration int
		AssetExpiration   int
		BlockExpiration   int
		TxExpiration      int
		PriceExpiration   int
		// Number of 4-bit access counters to keep for admission and eviction
		// Setting this to 10x the number of items you expect to keep in the cache when full
		MaxCounterNum int64
		MaxKeyNum     int64
	}
}

Jump to

Keyboard shortcuts

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