github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/vless.go (about)

     1  package option
     2  
     3  type VLESSInboundOptions struct {
     4  	ListenOptions
     5  	Users     []VLESSUser            `json:"users,omitempty"`
     6  	TLS       *InboundTLSOptions     `json:"tls,omitempty"`
     7  	Transport *V2RayTransportOptions `json:"transport,omitempty"`
     8  }
     9  
    10  type VLESSUser struct {
    11  	Name string `json:"name"`
    12  	UUID string `json:"uuid"`
    13  	Flow string `json:"flow,omitempty"`
    14  }
    15  
    16  type VLESSOutboundOptions struct {
    17  	DialerOptions
    18  	ServerOptions
    19  	UUID           string                 `json:"uuid"`
    20  	Flow           string                 `json:"flow,omitempty"`
    21  	Network        NetworkList            `json:"network,omitempty"`
    22  	TLS            *OutboundTLSOptions    `json:"tls,omitempty"`
    23  	Multiplex      *MultiplexOptions      `json:"multiplex,omitempty"`
    24  	Transport      *V2RayTransportOptions `json:"transport,omitempty"`
    25  	PacketEncoding *string                `json:"packet_encoding,omitempty"`
    26  }