chore: run goimports on 1.8 branch to bring it up to new check-in standards ()

Also manually edit imports section to meet our more granular conventions within the strictures of goimports.
pull/20910/head
davidby-influx 2021-03-09 12:08:26 -08:00 committed by GitHub
parent b2cb862484
commit 54d8d0180d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 113 additions and 71 deletions
cmd
influx_tools/internal/format/binary
influx_tsm/tsdb/internal
influxd/backup_util
flux/stdlib/influxdata/influxdb/v1
pkg/tracing/wire
prometheus/remote
query/internal
services
meta/internal
tsdb

View File

@ -248,4 +248,4 @@ func StripComments(raw []byte) []byte {
}
return buf.Bytes()
}
}

View File

@ -54,4 +54,4 @@ func TestStripComments(t *testing.T) {
}
})
}
}
}

View File

@ -21,14 +21,19 @@
*/
package binary
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import (
fmt "fmt"
import time "time"
proto "github.com/gogo/protobuf/proto"
import io "io"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
time "time"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -15,9 +15,13 @@ It has these top-level messages:
*/
package internal
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -6,15 +6,15 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"github.com/gogo/protobuf/proto"
internal "github.com/influxdata/influxdb/cmd/influxd/backup_util/internal"
"github.com/influxdata/influxdb/services/snapshotter"
"io/ioutil"
"path/filepath"
)
//go:generate protoc --gogo_out=. internal/data.proto

View File

@ -13,9 +13,13 @@ It has these top-level messages:
*/
package backup_util
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -9,7 +9,7 @@ import (
"github.com/influxdata/flux/execute"
"github.com/influxdata/flux/memory"
"github.com/influxdata/flux/plan"
"github.com/influxdata/flux/stdlib/influxdata/influxdb/v1"
v1 "github.com/influxdata/flux/stdlib/influxdata/influxdb/v1"
"github.com/influxdata/flux/values"
"github.com/influxdata/influxdb/flux/stdlib/influxdata/influxdb"
"github.com/influxdata/influxdb/services/meta"

View File

@ -15,17 +15,23 @@
*/
package wire
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import _ "github.com/gogo/protobuf/types"
import (
fmt "fmt"
import time "time"
proto "github.com/gogo/protobuf/proto"
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
math "math"
import io "io"
_ "github.com/gogo/protobuf/gogoproto"
_ "github.com/gogo/protobuf/types"
time "time"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -21,11 +21,15 @@
*/
package remote
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
import io "io"
proto "github.com/gogo/protobuf/proto"
math "math"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -19,9 +19,13 @@ It has these top-level messages:
*/
package query
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -55,9 +55,13 @@ It has these top-level messages:
*/
package meta
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -12,12 +12,17 @@
*/
package storage
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import (
fmt "fmt"
import io "io"
proto "github.com/gogo/protobuf/proto"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@ -6,10 +6,11 @@ package datatypes
import (
encoding_binary "encoding/binary"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -7,12 +7,13 @@ import (
context "context"
encoding_binary "encoding/binary"
fmt "fmt"
io "io"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
io "io"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -6,7 +6,7 @@ import (
"time"
influx "github.com/influxdata/influxdb/client/v2"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
"github.com/influxdata/influxdb/stress/v2/stressql"
)

View File

@ -3,7 +3,7 @@ package statement
import (
"time"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// ExecStatement run outside scripts. This functionality is not built out

View File

@ -3,7 +3,7 @@ package statement
import (
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestExecSetID(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// GoStatement is a Statement Implementation to allow other statements to be run concurrently

View File

@ -3,7 +3,7 @@ package statement
import (
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestGoSetID(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"log"
"time"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// InfluxqlStatement is a Statement Implementation that allows statements that parse in InfluxQL to be passed directly to the target instance

View File

@ -3,7 +3,7 @@ package statement
import (
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestInfluxQlSetID(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"sync"
"time"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// InsertStatement is a Statement Implementation that creates points to be written to the target InfluxDB instance

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestInsertSetID(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"time"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// QueryStatement is a Statement Implementation to run queries on the target InfluxDB instance

View File

@ -3,7 +3,7 @@ package statement
import (
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestQuerySetID(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// SetStatement set state variables for the test

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestSetSetID(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"log"
"strconv"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// Statement is the common interface to shape the testing environment and prepare database requests

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
// WaitStatement is a Statement Implementation to prevent the test from returning to early when running GoStatements

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/influxdata/influxdb/stress/v2/stress_client"
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
)
func TestWaitSetID(t *testing.T) {

View File

@ -1,19 +1,18 @@
package tests
import (
"fmt"
"io/ioutil"
"net"
"os"
"path/filepath"
"strings"
"testing"
"time"
"fmt"
"github.com/influxdata/influxdb/cmd/influxd/backup"
"github.com/influxdata/influxdb/cmd/influxd/restore"
"github.com/influxdata/influxdb/toml"
"strings"
)
func TestServer_BackupAndRestore(t *testing.T) {

View File

@ -1,16 +1,17 @@
package tsm1
import (
"github.com/influxdata/influxdb/logger"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxdb/tsdb"
"github.com/influxdata/influxdb/tsdb/index/inmem"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"testing"
"time"
"github.com/influxdata/influxdb/logger"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxdb/tsdb"
"github.com/influxdata/influxdb/tsdb/index/inmem"
)
func TestEngine_ConcurrentShardSnapshots(t *testing.T) {

View File

@ -3,11 +3,15 @@
package tsdb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import (
fmt "fmt"
import io "io"
proto "github.com/gogo/protobuf/proto"
math "math"
io "io"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal