gun.go 295 B

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