config.go 445 B

1234567891011121314151617181920212223
  1. package hbase
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // ZKConfig Server&Client settings.
  6. type ZKConfig struct {
  7. Root string
  8. Addrs []string
  9. Timeout xtime.Duration
  10. }
  11. // Config hbase config
  12. type Config struct {
  13. Zookeeper *ZKConfig
  14. RPCQueueSize int
  15. FlushInterval xtime.Duration
  16. EffectiveUser string
  17. RegionLookupTimeout xtime.Duration
  18. RegionReadTimeout xtime.Duration
  19. TestRowKey string
  20. }