github.com/EagleQL/Xray-core@v1.4.3/infra/conf/grpc.go (about) 1 package conf 2 3 import ( 4 "github.com/golang/protobuf/proto" 5 6 "github.com/xtls/xray-core/transport/internet/grpc" 7 ) 8 9 type GRPCConfig struct { 10 ServiceName string `json:"serviceName"` 11 MultiMode bool `json:"multiMode"` 12 } 13 14 func (g GRPCConfig) Build() (proto.Message, error) { 15 return &grpc.Config{ServiceName: g.ServiceName, MultiMode: g.MultiMode}, nil 16 }