Documentation ¶
Index ¶
- Variables
- func SetLog(debug, info, err *log.Logger)
- type Dialer
- type Manager
- func (m *Manager) Add(port int, method, password string, opts ...OptionHandler) (*SS, error)
- func (m *Manager) Del(port int) error
- func (m *Manager) Get(port int) (*SS, error)
- func (m *Manager) GetAll() []*SS
- func (m *Manager) GetAllByMethod(method string) []*SS
- func (m *Manager) SetHost(host string)
- type Option
- type OptionHandler
- type SS
- type SSOption
- type SSOptionHandler
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetAllByMethod ¶
GetAllByMethod get all ss by method
type OptionHandler ¶
type OptionHandler func(*Option)
func WithRateLimit ¶ added in v1.0.2
func WithRateLimit(send, recv uint64) OptionHandler
type SS ¶
type SS struct { Server string `json:"server"` Port int `json:"server_port"` Method string `json:"method"` Password string `json:"password"` // contains filtered or unexported fields }
SS is a sadowsocks instance manager
func (*SS) SetRatelimit ¶
type SSOptionHandler ¶ added in v1.0.2
type SSOptionHandler func(*SSOption)
Click to show internal directories.
Click to hide internal directories.