Skip to content

Commit

Permalink
feat: remove proto
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Apr 17, 2024
1 parent 0e4e46e commit 7fb72b1
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 2,166 deletions.
3 changes: 1 addition & 2 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package api
import (
"context"

rpc "github.com/longhorn/types/pkg/generated/bimrpc"
"github.com/pkg/errors"
"google.golang.org/grpc"

"github.com/longhorn/backing-image-manager/pkg/rpc"
)

type BackingImage struct {
Expand Down
26 changes: 0 additions & 26 deletions generate_grpc.sh

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/client/manager_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package client
import (
"fmt"

rpc "github.com/longhorn/types/pkg/generated/bimrpc"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/protobuf/types/known/emptypb"

"github.com/longhorn/backing-image-manager/api"
"github.com/longhorn/backing-image-manager/pkg/meta"
"github.com/longhorn/backing-image-manager/pkg/rpc"
"github.com/longhorn/backing-image-manager/pkg/types"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/manager/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"os/signal"
"syscall"

rpc "github.com/longhorn/types/pkg/generated/bimrpc"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"

"github.com/longhorn/backing-image-manager/pkg/rpc"
"github.com/longhorn/backing-image-manager/pkg/sync"
"github.com/longhorn/backing-image-manager/pkg/util"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/manager/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ import (
"time"

"github.com/golang/protobuf/ptypes/empty"
butil "github.com/longhorn/backupstore/util"
rpc "github.com/longhorn/types/pkg/generated/bimrpc"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"

butil "github.com/longhorn/backupstore/util"

"github.com/longhorn/backing-image-manager/api"
"github.com/longhorn/backing-image-manager/pkg/backup"
"github.com/longhorn/backing-image-manager/pkg/client"
"github.com/longhorn/backing-image-manager/pkg/rpc"
"github.com/longhorn/backing-image-manager/pkg/types"
"github.com/longhorn/backing-image-manager/pkg/util"
"github.com/longhorn/backing-image-manager/pkg/util/broadcaster"
)

type Manager struct {
rpc.UnimplementedBackingImageManagerServiceServer
ctx context.Context

syncAddress string
Expand Down
2 changes: 1 addition & 1 deletion pkg/manager/version.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package manager

import (
rpc "github.com/longhorn/types/pkg/generated/bimrpc"
"golang.org/x/net/context"
"google.golang.org/protobuf/types/known/emptypb"

"github.com/longhorn/backing-image-manager/pkg/meta"
"github.com/longhorn/backing-image-manager/pkg/rpc"
)

func (pm *Manager) VersionGet(ctx context.Context, empty *emptypb.Empty) (*rpc.VersionResponse, error) {
Expand Down
Loading

0 comments on commit 7fb72b1

Please sign in to comment.