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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user