1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/infra/conf/v4/gun.go
2022-01-02 15:16:23 +00:00

16 lines
295 B
Go

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