Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2022 Changes in this version + const APIVersion + const OpCloseProxy + const OpLogin + const OpNewProxy + const OpNewUserConn + const OpNewWorkConn + const OpPing + func GetReqidFromContext(ctx context.Context) string + func NewReqidContext(ctx context.Context, reqid string) context.Context + type CloseProxyContent struct + User UserInfo + type HTTPPluginOptions struct + Addr string + Name string + Ops []string + Path string + TLSVerify bool + type LoginContent struct + ClientAddress string + type Manager struct + func NewManager() *Manager + func (m *Manager) CloseProxy(content *CloseProxyContent) error + func (m *Manager) Login(content *LoginContent) (*LoginContent, error) + func (m *Manager) NewProxy(content *NewProxyContent) (*NewProxyContent, error) + func (m *Manager) NewUserConn(content *NewUserConnContent) (*NewUserConnContent, error) + func (m *Manager) NewWorkConn(content *NewWorkConnContent) (*NewWorkConnContent, error) + func (m *Manager) Ping(content *PingContent) (*PingContent, error) + func (m *Manager) Register(p Plugin) + type NewProxyContent struct + User UserInfo + type NewUserConnContent struct + ProxyName string + ProxyType string + RemoteAddr string + User UserInfo + type NewWorkConnContent struct + User UserInfo + type PingContent struct + User UserInfo + type Plugin interface + Handle func(ctx context.Context, op string, content interface{}) (res *Response, retContent interface{}, err error) + IsSupport func(op string) bool + Name func() string + func NewHTTPPluginOptions(options HTTPPluginOptions) Plugin + type Request struct + Content interface{} + Op string + Version string + type Response struct + Content interface{} + Reject bool + RejectReason string + Unchange bool + type UserInfo struct + Metas map[string]string + RunID string + User string