Sfoglia il codice sorgente

update Build Interface

Shelikhoo 4 anni fa
parent
commit
4549dba2d7
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  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)
+}