github.com/sagernet/sing-box@v1.9.0-rc.20/option/tuic.go (about)

     1  package option
     2  
     3  type TUICInboundOptions struct {
     4  	ListenOptions
     5  	Users             []TUICUser `json:"users,omitempty"`
     6  	CongestionControl string     `json:"congestion_control,omitempty"`
     7  	AuthTimeout       Duration   `json:"auth_timeout,omitempty"`
     8  	ZeroRTTHandshake  bool       `json:"zero_rtt_handshake,omitempty"`
     9  	Heartbeat         Duration   `json:"heartbeat,omitempty"`
    10  	InboundTLSOptionsContainer
    11  }
    12  
    13  type TUICUser struct {
    14  	Name     string `json:"name,omitempty"`
    15  	UUID     string `json:"uuid,omitempty"`
    16  	Password string `json:"password,omitempty"`
    17  }
    18  
    19  type TUICOutboundOptions struct {
    20  	DialerOptions
    21  	ServerOptions
    22  	UUID              string      `json:"uuid,omitempty"`
    23  	Password          string      `json:"password,omitempty"`
    24  	CongestionControl string      `json:"congestion_control,omitempty"`
    25  	UDPRelayMode      string      `json:"udp_relay_mode,omitempty"`
    26  	UDPOverStream     bool        `json:"udp_over_stream,omitempty"`
    27  	ZeroRTTHandshake  bool        `json:"zero_rtt_handshake,omitempty"`
    28  	Heartbeat         Duration    `json:"heartbeat,omitempty"`
    29  	Network           NetworkList `json:"network,omitempty"`
    30  	OutboundTLSOptionsContainer
    31  }