Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyOpt ¶
type CopyOpt struct { ManualGC bool WriteThread int Mint int64 Cent int64 Maxt int64 BlockSplit int64 TimeSplit int64 CommitCount uint64 TargetDir string TenantLabel string DefaultTenant string LabelAppends labels.Labels LabelMatchers []*labels.Matcher JobPool *ants.Pool FlushPool *ants.Pool FlushGroup *sync.WaitGroup }
func (*CopyOpt) BlockRange ¶
type Copyer ¶
type Copyer struct {
// contains filtered or unexported fields
}
func MustNewCopyer ¶
func NewLocalCopyer ¶
func (*Copyer) CopyPerBlock ¶
func (c *Copyer) CopyPerBlock(opt *CopyOpt, ch chan<- *TenantResult) (err error)
func (*Copyer) GetDbTimes ¶
type MultiTenantWriter ¶
type MultiTenantWriter struct {
// contains filtered or unexported fields
}
func NewMultiTenantWriter ¶
func (*MultiTenantWriter) Count ¶
func (mw *MultiTenantWriter) Count() int
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) PullNoWait ¶
type TenantResult ¶
func (*TenantResult) New ¶
func (r *TenantResult) New(tenant string) *TenantResult
func (*TenantResult) Show ¶
func (r *TenantResult) Show() string
type TenantResults ¶
type TenantResults []*TenantResult
func (TenantResults) ToMap ¶
func (t TenantResults) ToMap() map[string][]string
Click to show internal directories.
Click to hide internal directories.