github.com/imannamdari/v2ray-core/v5@v5.0.5/infra/conf/v4/gun.go (about)

     1  package v4
     2  
     3  import (
     4  	"github.com/golang/protobuf/proto"
     5  
     6  	"github.com/imannamdari/v2ray-core/v5/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  }