v8 - ActiveState ActiveGo 1.8

Package v8

import "github.com/influxdata/influxdb/importer/v8"

Overview ▾

Package v8 contains code for importing data from 0.8 instances of InfluxDB.

type Config

Config is the config used to initialize a Importer importer

type Config struct {
    Path       string // Path to import data.
    Version    string
    Compressed bool // Whether import data is gzipped.
    PPS        int  // points per second importer imports with.


func NewConfig

func NewConfig() Config

NewConfig returns an initialized *Config

type Importer

Importer is the importer used for importing 0.8 data

type Importer struct {
    // contains filtered or unexported fields

func NewImporter

func NewImporter(config Config) *Importer

NewImporter will return an intialized Importer struct

func (*Importer) Import

func (i *Importer) Import() error

Import processes the specified file in the Config and writes the data to the databases in chunks specified by batchSize