Kaynağa Gözat

update Build Interface

Shelikhoo 4 yıl önce
ebeveyn
işleme
4549dba2d7
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 8 1
      infra/conf/cfgcommon/buildable.go

+ 8 - 1
infra/conf/cfgcommon/buildable.go

@@ -1,7 +1,14 @@
 package cfgcommon
 
-import "github.com/golang/protobuf/proto"
+import (
+	"context"
+	"github.com/golang/protobuf/proto"
+)
 
 type Buildable interface {
 	Build() (proto.Message, error)
 }
+
+type BuildableV5 interface {
+	BuildV5(ctx context.Context) (proto.Message, error)
+}