github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/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 } 11 12 type ShadowsocksUser struct { 13 Name string `json:"name"` 14 Password string `json:"password"` 15 } 16 17 type ShadowsocksDestination struct { 18 Name string `json:"name"` 19 Password string `json:"password"` 20 ServerOptions 21 } 22 23 type ShadowsocksOutboundOptions struct { 24 DialerOptions 25 ServerOptions 26 Method string `json:"method"` 27 Password string `json:"password"` 28 Plugin string `json:"plugin,omitempty"` 29 PluginOptions string `json:"plugin_opts,omitempty"` 30 Network NetworkList `json:"network,omitempty"` 31 UDPOverTCPOptions *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"` 32 MultiplexOptions *MultiplexOptions `json:"multiplex,omitempty"` 33 }