| 123456789101112131415 |
- 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
- }
|