Documentation ¶
Index ¶
- type CMap
- type CMapShard
- type Option
- func ClickHouse(dsn string) Option
- func DataTable(t string) Option
- func DataTimeout(t time.Duration) Option
- func InProgressCallback(cb func(string) bool) Option
- func Logger(logger zap.Logger) Option
- func Path(path string) Option
- func Threads(t int) Option
- func TreeDate(t time.Time) Option
- func TreeTable(t string) Option
- func TreeTimeout(t time.Duration) Option
- type Tree
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMap ¶
type CMap []*CMapShard
A "thread" safe map of type string:Anything. To avoid lock bottlenecks this map is dived to several (shardCount) map shards.
type CMapShard ¶
type CMapShard struct { sync.RWMutex // Read Write mutex, guards access to internal map. // contains filtered or unexported fields }
A "thread" safe string to anything map.
type Option ¶
type Option func(u *Uploader)
func ClickHouse ¶
func DataTimeout ¶
func InProgressCallback ¶
func TreeTimeout ¶
type Uploader ¶
Uploader upload files from local directory to clickhouse
func (*Uploader) ClearTreeExistsCache ¶ added in v0.3.1
func (u *Uploader) ClearTreeExistsCache()
Click to show internal directories.
Click to hide internal directories.