Skip to content

Commit

Permalink
[devtools/contrib/piglet/projects/yt-excel-integration] Sort local im…
Browse files Browse the repository at this point in the history
…ports.

56af96c8850b3b2402cbc3d6c7f84b36f5ccce98
  • Loading branch information
verytable committed Jun 5, 2024
1 parent e899585 commit 894417e
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 10 deletions.
7 changes: 4 additions & 3 deletions exporter/cmd/excel-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import (
"path/filepath"
"syscall"

"golang.org/x/sync/errgroup"
"golang.org/x/xerrors"
"gopkg.in/yaml.v2"

"go.ytsaurus.tech/library/go/core/log"
logzap "go.ytsaurus.tech/library/go/core/log/zap"
"go.ytsaurus.tech/yt/go/ytlog"
"go.ytsaurus.tech/yt/microservices/excel/exporter/internal/app"
"golang.org/x/sync/errgroup"
"golang.org/x/xerrors"
"gopkg.in/yaml.v2"
)

func main() {
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/app/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/go-chi/chi/v5"
"go.uber.org/atomic"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/core/metrics"
"go.ytsaurus.tech/library/go/core/xerrors"
Expand Down
3 changes: 2 additions & 1 deletion exporter/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import (
"time"

"github.com/go-chi/chi/v5"
"golang.org/x/sync/errgroup"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/httputil/middleware/httpmetrics"
"go.ytsaurus.tech/yt/go/yt"
"go.ytsaurus.tech/yt/go/yt/ythttp"
"golang.org/x/sync/errgroup"
)

const httpServerGracefulStopTimeout = 30 * time.Second
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/app/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"net/http"

"github.com/go-chi/chi/v5"

"go.ytsaurus.tech/library/go/core/metrics"
"go.ytsaurus.tech/library/go/core/metrics/prometheus"
)
Expand Down
3 changes: 2 additions & 1 deletion exporter/internal/app/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/golang/protobuf/proto"
"go.uber.org/atomic"
"golang.org/x/xerrors"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/core/log/ctxlog"
"go.ytsaurus.tech/yt/go/guid"
"go.ytsaurus.tech/yt/go/proto/core/rpc"
"go.ytsaurus.tech/yt/go/yt"
"go.ytsaurus.tech/yt/go/yterrors"
"golang.org/x/xerrors"
)

const (
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/exporter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/c2h5oh/datasize"
"github.com/xuri/excelize/v2"

"go.ytsaurus.tech/library/go/core/xerrors"
"go.ytsaurus.tech/yt/go/schema"
"go.ytsaurus.tech/yt/go/yson"
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/exporter/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/stretchr/testify/require"
"github.com/xuri/excelize/v2"

"go.ytsaurus.tech/yt/go/schema"
"go.ytsaurus.tech/yt/go/yson"
)
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/xuri/excelize/v2"

"go.ytsaurus.tech/library/go/core/xerrors"
"go.ytsaurus.tech/yt/go/schema"
"go.ytsaurus.tech/yt/go/ypath"
Expand Down
1 change: 1 addition & 0 deletions exporter/internal/exporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"

"go.ytsaurus.tech/library/go/core/log/zap"
"go.ytsaurus.tech/yt/go/guid"
"go.ytsaurus.tech/yt/go/schema"
Expand Down
7 changes: 4 additions & 3 deletions uploader/cmd/excel-uploader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import (
"path/filepath"
"syscall"

"golang.org/x/sync/errgroup"
"golang.org/x/xerrors"
"gopkg.in/yaml.v2"

"go.ytsaurus.tech/library/go/core/log"
logzap "go.ytsaurus.tech/library/go/core/log/zap"
"go.ytsaurus.tech/yt/go/ytlog"
"go.ytsaurus.tech/yt/microservices/excel/uploader/internal/app"
"golang.org/x/sync/errgroup"
"golang.org/x/xerrors"
"gopkg.in/yaml.v2"
)

func main() {
Expand Down
1 change: 1 addition & 0 deletions uploader/internal/app/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/go-chi/chi/v5"
"github.com/xuri/excelize/v2"
"go.uber.org/atomic"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/core/metrics"
"go.ytsaurus.tech/library/go/core/xerrors"
Expand Down
3 changes: 2 additions & 1 deletion uploader/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
"time"

"github.com/go-chi/chi/v5"
"golang.org/x/sync/errgroup"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/httputil/middleware/httpmetrics"
"go.ytsaurus.tech/yt/go/yt"
"go.ytsaurus.tech/yt/go/yt/ythttp"
"golang.org/x/sync/errgroup"
)

const httpServerGracefulStopTimeout = 30 * time.Second
Expand Down
1 change: 1 addition & 0 deletions uploader/internal/app/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"net/http"

"github.com/go-chi/chi/v5"

"go.ytsaurus.tech/library/go/core/metrics"
"go.ytsaurus.tech/library/go/core/metrics/prometheus"
)
Expand Down
3 changes: 2 additions & 1 deletion uploader/internal/app/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/golang/protobuf/proto"
"go.uber.org/atomic"
"golang.org/x/xerrors"

"go.ytsaurus.tech/library/go/core/log"
"go.ytsaurus.tech/library/go/core/log/ctxlog"
"go.ytsaurus.tech/yt/go/guid"
"go.ytsaurus.tech/yt/go/proto/core/rpc"
"go.ytsaurus.tech/yt/go/yt"
"go.ytsaurus.tech/yt/go/yterrors"
"golang.org/x/xerrors"
)

const (
Expand Down
1 change: 1 addition & 0 deletions uploader/internal/uploader/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/xuri/excelize/v2"

"go.ytsaurus.tech/library/go/core/xerrors"
"go.ytsaurus.tech/yt/go/schema"
"go.ytsaurus.tech/yt/go/ypath"
Expand Down
1 change: 1 addition & 0 deletions uploader/internal/uploader/uploader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/stretchr/testify/require"
"github.com/xuri/excelize/v2"

"go.ytsaurus.tech/yt/go/schema"
"go.ytsaurus.tech/yt/go/ypath"
"go.ytsaurus.tech/yt/go/yt"
Expand Down

0 comments on commit 894417e

Please sign in to comment.