MCPcopy Create free account
hub / github.com/PasarGuard/node / NewShadowsocksAccount

Function NewShadowsocksAccount

backend/xray/api/account.go:141–149  ·  view source on GitHub ↗
(user *common.User)

Source from the content-addressed store, hash-verified

139}
140
141func NewShadowsocksAccount(user *common.User) *ShadowsocksAccount {
142 return &ShadowsocksAccount{
143 BaseAccount: BaseAccount{
144 Email: user.GetEmail(),
145 Level: 0,
146 },
147 Password: user.GetProxies().GetShadowsocks().GetPassword(),
148 }
149}
150
151type ShadowsocksTcpAccount struct {
152 ShadowsocksAccount

Callers 2

syncUsersMethod · 0.92
setupUserAccountFunction · 0.92

Calls 4

GetShadowsocksMethod · 0.80
GetProxiesMethod · 0.80
GetEmailMethod · 0.65
GetPasswordMethod · 0.45

Tested by

no test coverage detected