github.com/v2fly/v2ray-core/v4@v4.45.2/infra/conf/gun.go (about) 1 package conf 2 3 import ( 4 "github.com/golang/protobuf/proto" 5 6 "github.com/v2fly/v2ray-core/v4/transport/internet/grpc" 7 ) 8 9 type GunConfig struct { 10 ServiceName string `json:"serviceName"` 11 } 12 13 func (g GunConfig) Build() (proto.Message, error) { 14 return &grpc.Config{ServiceName: g.ServiceName}, nil 15 }