1234567891011121314151617181920212223242526272829303132 |
- package plugin
- import (
- "context"
- )
- const (
- APIVersion = "0.1.0"
- OpLogin = "Login"
- OpNewProxy = "NewProxy"
- )
- type Plugin interface {
- Name() string
- IsSupport(op string) bool
- Handle(ctx context.Context, op string, content interface{}) (res *Response, retContent interface{}, err error)
- }
|