Permalink
Browse files

rename ProtectedStorage

  • Loading branch information...
kamilsk committed Oct 26, 2018
1 parent 4db7a34 commit 092c9e8c869606b432f40b210248d15992851086
Showing with 9 additions and 9 deletions.
  1. +4 βˆ’4 cmd/guard/main_test.go
  2. +2 βˆ’2 pkg/transport/grpc/rpc/contract.go
  3. +1 βˆ’1 pkg/transport/grpc/rpc/license_server.go
  4. +2 βˆ’2 pkg/transport/grpc/rpc/server.go
@@ -18,10 +18,10 @@ import (

// invariant
var (
_ api.Service = guard.New(config.ServiceConfig{}, nil)
_ guard.Storage = storage.Must()
_ rpc.ProtectedStorage = storage.Must()
_ rpc.Maintenance = guard.New(config.ServiceConfig{}, nil)
_ api.Service = guard.New(config.ServiceConfig{}, nil)
_ guard.Storage = storage.Must()
_ rpc.Storage = storage.Must()
_ rpc.Maintenance = guard.New(config.ServiceConfig{}, nil)
)

func TestService(t *testing.T) {
@@ -17,8 +17,8 @@ type Maintenance interface {
Install(context.Context, request.Install) response.Install
}

// ProtectedStorage TODO issue#docs
type ProtectedStorage interface {
// Storage TODO issue#docs
type Storage interface {
// RegisterLicense TODO issue#docs
RegisterLicense(context.Context, domain.Token, query.RegisterLicense) (repository.License, error)
// CreateLicense TODO issue#docs
@@ -13,7 +13,7 @@ import (
)

type licenseServer struct {
storage ProtectedStorage
storage Storage
}

// Register TODO issue#docs
@@ -15,13 +15,13 @@ import (
)

// New TODO issue#docs
func New(_ config.GRPCConfig, service Maintenance, storage ProtectedStorage) transport.Server {
func New(_ config.GRPCConfig, service Maintenance, storage Storage) transport.Server {
return &server{service, storage}
}

type server struct {
service Maintenance
storage ProtectedStorage
storage Storage
}

// Serve TODO issue#docs

0 comments on commit 092c9e8

Please sign in to comment.