Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIVersion = "0.1.0" OpLogin = "Login" OpNewProxy = "NewProxy" )
Variables ¶
This section is empty.
Functions ¶
func GetReqidFromContext ¶
Types ¶
type HTTPPluginOptions ¶
type LoginContent ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) Login ¶
func (m *Manager) Login(content *LoginContent) (*LoginContent, error)
func (*Manager) NewProxy ¶
func (m *Manager) NewProxy(content *NewProxyContent) (*NewProxyContent, error)
type NewProxyContent ¶
type Plugin ¶
type Plugin interface { Name() string IsSupport(op string) bool Handle(ctx context.Context, op string, content interface{}) (res *Response, retContent interface{}, err error) }
func NewHTTPPluginOptions ¶
func NewHTTPPluginOptions(options HTTPPluginOptions) Plugin
Click to show internal directories.
Click to hide internal directories.