Explorar o código

update Build Interface

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
4549dba2d7
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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)
+}