Skip to content

Commit

Permalink
Move presenters in their own subpackages for manager & publisher (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
teran committed Aug 17, 2024
1 parent 95aa76b commit 476640f
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.publisher
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM scratch

COPY --from=certificates /etc/ssl/cert.pem /etc/ssl/cert.pem
COPY --chmod=0755 --chown=root:root dist/archived-publisher_linux_amd64_v3/archived-publisher /archived-publisher
COPY --chmod=0644 --chown=root:root presenter/publisher/html/templates /templates
COPY --chmod=0644 --chown=root:root publisher/presenter/html/templates /templates

ENV HTML_TEMPLATE_DIR=/templates
ENV STATIC_DIR=/static
Expand Down
2 changes: 1 addition & 1 deletion cli/service/pb_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package service
import (
"context"

v1proto "github.com/teran/archived/presenter/manager/grpc/proto/v1"
v1proto "github.com/teran/archived/manager/presenter/grpc/proto/v1"
"github.com/teran/archived/repositories/blob/mock"
"google.golang.org/grpc"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

cache "github.com/teran/archived/cli/service/stat_cache"
"github.com/teran/archived/cli/yum"
v1proto "github.com/teran/archived/presenter/manager/grpc/proto/v1"
v1proto "github.com/teran/archived/manager/presenter/grpc/proto/v1"
)

type Service interface {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/teran/archived/cli/router"
"github.com/teran/archived/cli/service"
"github.com/teran/archived/cli/service/stat_cache/local"
v1proto "github.com/teran/archived/presenter/manager/grpc/proto/v1"
v1proto "github.com/teran/archived/manager/presenter/grpc/proto/v1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

grpcManagePresenter "github.com/teran/archived/presenter/manager/grpc"
grpcManagePresenter "github.com/teran/archived/manager/presenter/grpc"
awsBlobRepo "github.com/teran/archived/repositories/blob/aws"
"github.com/teran/archived/repositories/metadata/postgresql"
"github.com/teran/archived/service"
Expand Down
2 changes: 1 addition & 1 deletion cmd/publisher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"

htmlPresenter "github.com/teran/archived/presenter/publisher/html"
htmlPresenter "github.com/teran/archived/publisher/presenter/html"
awsBlobRepo "github.com/teran/archived/repositories/blob/aws"
"github.com/teran/archived/repositories/cache/metadata/memcache"
"github.com/teran/archived/repositories/metadata/postgresql"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

v1 "github.com/teran/archived/presenter/manager/grpc/proto/v1"
v1 "github.com/teran/archived/manager/presenter/grpc/proto/v1"
"github.com/teran/archived/service"
ptr "github.com/teran/go-ptr"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/suite"
grpctest "github.com/teran/go-grpctest"

v1pb "github.com/teran/archived/manager/presenter/grpc/proto/v1"
"github.com/teran/archived/models"
v1pb "github.com/teran/archived/presenter/manager/grpc/proto/v1"
"github.com/teran/archived/service"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax = "proto3";

package presenter.manager.grpc.proto.v1;
package manager.presenter.grpc.proto.v1;

option go_package = "github.com/teran/archived/presenter/manager/grpc/proto/v1";
option go_package = "github.com/teran/archived/manager/presenter/grpc/proto/v1";

message CreateContainerRequest {
string name = 1;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 476640f

Please sign in to comment.