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

     1  package option
     2  
     3  type HysteriaInboundOptions struct {
     4  	ListenOptions
     5  	Up                  string         `json:"up,omitempty"`
     6  	UpMbps              int            `json:"up_mbps,omitempty"`
     7  	Down                string         `json:"down,omitempty"`
     8  	DownMbps            int            `json:"down_mbps,omitempty"`
     9  	Obfs                string         `json:"obfs,omitempty"`
    10  	Users               []HysteriaUser `json:"users,omitempty"`
    11  	ReceiveWindowConn   uint64         `json:"recv_window_conn,omitempty"`
    12  	ReceiveWindowClient uint64         `json:"recv_window_client,omitempty"`
    13  	MaxConnClient       int            `json:"max_conn_client,omitempty"`
    14  	DisableMTUDiscovery bool           `json:"disable_mtu_discovery,omitempty"`
    15  	InboundTLSOptionsContainer
    16  }
    17  
    18  type HysteriaUser struct {
    19  	Name       string `json:"name,omitempty"`
    20  	Auth       []byte `json:"auth,omitempty"`
    21  	AuthString string `json:"auth_str,omitempty"`
    22  }
    23  
    24  type HysteriaOutboundOptions struct {
    25  	DialerOptions
    26  	ServerOptions
    27  	Up                  string      `json:"up,omitempty"`
    28  	UpMbps              int         `json:"up_mbps,omitempty"`
    29  	Down                string      `json:"down,omitempty"`
    30  	DownMbps            int         `json:"down_mbps,omitempty"`
    31  	Obfs                string      `json:"obfs,omitempty"`
    32  	Auth                []byte      `json:"auth,omitempty"`
    33  	AuthString          string      `json:"auth_str,omitempty"`
    34  	ReceiveWindowConn   uint64      `json:"recv_window_conn,omitempty"`
    35  	ReceiveWindow       uint64      `json:"recv_window,omitempty"`
    36  	DisableMTUDiscovery bool        `json:"disable_mtu_discovery,omitempty"`
    37  	Network             NetworkList `json:"network,omitempty"`
    38  	OutboundTLSOptionsContainer
    39  }