mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-23 11:53:33 +02:00
a0a32ee00d
Co-authored-by: JimhHan <50871214+JimhHan@users.noreply.github.com>
16 lines
357 B
Go
16 lines
357 B
Go
package conf
|
|
|
|
import (
|
|
"github.com/golang/protobuf/proto"
|
|
|
|
"github.com/xtls/xray-core/transport/internet/grpc"
|
|
)
|
|
|
|
type GRPCConfig struct {
|
|
ServiceName string `json:"serviceName"`
|
|
MultiMode bool `json:"multiMode"`
|
|
}
|
|
|
|
func (g GRPCConfig) Build() (proto.Message, error) {
|
|
return &grpc.Config{ServiceName: g.ServiceName, MultiMode: g.MultiMode}, nil
|
|
}
|