123456789101112131415161718192021222324252627282930313233343536 |
- package plugin
- import (
- "context"
- )
- const (
- APIVersion = "0.1.0"
- OpLogin = "Login"
- OpNewProxy = "NewProxy"
- OpCloseProxy = "CloseProxy"
- OpPing = "Ping"
- OpNewWorkConn = "NewWorkConn"
- OpNewUserConn = "NewUserConn"
- )
- type Plugin interface {
- Name() string
- IsSupport(op string) bool
- Handle(ctx context.Context, op string, content interface{}) (res *Response, retContent interface{}, err error)
- }
|