Versions in this module Expand all Collapse all v1 v1.0.1 Mar 8, 2024 v1.0.0 Mar 8, 2024 Changes in this version + const APIVersion + const OpLogin + const OpNewProxy + func GetReqidFromContext(ctx context.Context) string + func NewReqidContext(ctx context.Context, reqid string) context.Context + type HTTPPluginOptions struct + Addr string + Name string + Ops []string + Path string + type LoginContent struct + type Manager struct + func NewManager() *Manager + func (m *Manager) Login(content *LoginContent) (*LoginContent, error) + func (m *Manager) NewProxy(content *NewProxyContent) (*NewProxyContent, error) + func (m *Manager) Register(p Plugin) + type NewProxyContent 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 + User string