Documentation
¶
Index ¶
- func URLTest(ctx context.Context, link string, detour N.Dialer) (t int16, err error)
- type SingAPI
- func (s *SingAPI) AddUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
- func (s *SingAPI) AddUserReset(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
- func (s *SingAPI) Close() error
- func (s *SingAPI) CloseConns(suser *sbox.Userconfig) error
- func (s *SingAPI) GetLogChan() chan any
- func (s *SingAPI) GetstatusUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
- func (s *SingAPI) RefreshUrlTest()
- func (s *SingAPI) RemoveAllRuleForuser(user string)
- func (s *SingAPI) RemoveUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
- func (s *SingAPI) SetLogChan(logchan chan any)
- func (s *SingAPI) Start() error
- func (s *SingAPI) UrlTest(outtag string) (int16, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SingAPI ¶
type SingAPI struct {
sbox.Sboxcontroller
// contains filtered or unexported fields
}
func NewsingAPI ¶
func (*SingAPI) AddUser ¶
func (s *SingAPI) AddUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
func (*SingAPI) AddUserReset ¶
func (s *SingAPI) AddUserReset(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
func (*SingAPI) CloseConns ¶
func (s *SingAPI) CloseConns(suser *sbox.Userconfig) error
func (*SingAPI) GetLogChan ¶
func (*SingAPI) GetstatusUser ¶
func (s *SingAPI) GetstatusUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
func (*SingAPI) RefreshUrlTest ¶
func (s *SingAPI) RefreshUrlTest()
func (*SingAPI) RemoveAllRuleForuser ¶
func (*SingAPI) RemoveUser ¶
func (s *SingAPI) RemoveUser(suser *sbox.Userconfig) (sbox.Sboxstatus, error)
func (*SingAPI) SetLogChan ¶
Click to show internal directories.
Click to hide internal directories.