1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-30 02:55:23 +00:00
v2fly/infra/conf/gun.go

16 lines
297 B
Go
Raw Normal View History

package conf
import (
"github.com/golang/protobuf/proto"
"github.com/v2fly/v2ray-core/v4/transport/internet/grpc"
)
type GunConfig struct {
ServiceName string `json:"serviceName"`
}
func (g GunConfig) Build() (proto.Message, error) {
return &grpc.Config{ServiceName: g.ServiceName}, nil
}