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

     1  package option
     2  
     3  type ShadowsocksInboundOptions struct {
     4  	ListenOptions
     5  	Network      NetworkList              `json:"network,omitempty"`
     6  	Method       string                   `json:"method"`
     7  	Password     string                   `json:"password,omitempty"`
     8  	Users        []ShadowsocksUser        `json:"users,omitempty"`
     9  	Destinations []ShadowsocksDestination `json:"destinations,omitempty"`
    10  	Multiplex    *InboundMultiplexOptions `json:"multiplex,omitempty"`
    11  }
    12  
    13  type ShadowsocksUser struct {
    14  	Name     string `json:"name"`
    15  	Password string `json:"password"`
    16  }
    17  
    18  type ShadowsocksDestination struct {
    19  	Name     string `json:"name"`
    20  	Password string `json:"password"`
    21  	ServerOptions
    22  }
    23  
    24  type ShadowsocksOutboundOptions struct {
    25  	DialerOptions
    26  	ServerOptions
    27  	Method        string                    `json:"method"`
    28  	Password      string                    `json:"password"`
    29  	Plugin        string                    `json:"plugin,omitempty"`
    30  	PluginOptions string                    `json:"plugin_opts,omitempty"`
    31  	Network       NetworkList               `json:"network,omitempty"`
    32  	UDPOverTCP    *UDPOverTCPOptions        `json:"udp_over_tcp,omitempty"`
    33  	Multiplex     *OutboundMultiplexOptions `json:"multiplex,omitempty"`
    34  }