Documentation ¶
Index ¶
- Constants
- func CheckSameDomain(domains []string) bool
- func Contains(obj interface{}, target interface{}) bool
- func GetDebugLevel() string
- func GetDomainCfg() []string
- func GetKafkaEnableIdempotence() bool
- func GetKafkaForceAsyncSend() bool
- func GetKafkaNumPartitions() int
- func GetKafkaNumProducers() int
- func GetKafkaReplicaFactor() int
- func GetLatestToken() int
- func GetTokenExpire() int64
- func GetUtlExpire() int64
- func Random(min, max int) int
- func SetCacheCfg(tokenExpire, utlExpire int64, latestToken int)
- func SetDebugLevel(debugLevel string)
- func SetDistLockItemCfg(item string, timeout, wait int, force bool)
- func SetDomainCfg(domains []string)
- func SetKafkaEnableIdempotence(enableIdempotence bool)
- func SetKafkaForceAsyncSend(forceAsyncSend bool)
- func SetKafkaNumPartitions(numPartitions int)
- func SetKafkaNumProducers(numProducers int)
- func SetKafkaReplicaFactor(replicaFactor int)
- type CacheCfg
- type CommonCfg
- type DebugCfg
- type DistLockCfg
- type DomainCfg
- type KafkaCommonCfg
- type LockCfg
Constants ¶
View Source
const ( DEBUG_LEVEL_DEBUG = "debug" DEBUG_LEVEL_PROD = "prod" )
Variables ¶
This section is empty.
Functions ¶
func CheckSameDomain ¶
func GetDebugLevel ¶
func GetDebugLevel() string
func GetDomainCfg ¶
func GetDomainCfg() []string
func GetKafkaEnableIdempotence ¶
func GetKafkaEnableIdempotence() bool
func GetKafkaForceAsyncSend ¶
func GetKafkaForceAsyncSend() bool
func GetKafkaNumPartitions ¶
func GetKafkaNumPartitions() int
func GetKafkaNumProducers ¶
func GetKafkaNumProducers() int
func GetKafkaReplicaFactor ¶
func GetKafkaReplicaFactor() int
func GetLatestToken ¶
func GetLatestToken() int
func GetTokenExpire ¶
func GetTokenExpire() int64
func GetUtlExpire ¶
func GetUtlExpire() int64
func SetCacheCfg ¶
func SetDebugLevel ¶
func SetDebugLevel(debugLevel string)
func SetDistLockItemCfg ¶
func SetDomainCfg ¶
func SetDomainCfg(domains []string)
func SetKafkaEnableIdempotence ¶
func SetKafkaEnableIdempotence(enableIdempotence bool)
func SetKafkaForceAsyncSend ¶
func SetKafkaForceAsyncSend(forceAsyncSend bool)
func SetKafkaNumPartitions ¶
func SetKafkaNumPartitions(numPartitions int)
func SetKafkaNumProducers ¶
func SetKafkaNumProducers(numProducers int)
func SetKafkaReplicaFactor ¶
func SetKafkaReplicaFactor(replicaFactor int)
Types ¶
type CommonCfg ¶
type CommonCfg struct { Kafka KafkaCommonCfg Domain DomainCfg DistLock DistLockCfg Debug DebugCfg Cache CacheCfg }
var AdapterCfg CommonCfg
type DistLockCfg ¶
func GetDistLockCfg ¶
func GetDistLockCfg() DistLockCfg
type KafkaCommonCfg ¶
Click to show internal directories.
Click to hide internal directories.