Browse Source

update Build Interface

Shelikhoo 4 years ago
parent
commit
4549dba2d7
1 changed files with 8 additions and 1 deletions
  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)
+}