1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-22 00:55:29 -05:00

update Build Interface

This commit is contained in:
Shelikhoo
2021-09-04 13:20:04 +01:00
parent 663e6028c3
commit 4549dba2d7

View File

@@ -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)
}