Przeglądaj źródła

update Build Interface

Shelikhoo 4 lat temu
rodzic
commit
4549dba2d7
1 zmienionych plików z 8 dodań i 1 usunięć
  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)
+}