Documentation ¶
Index ¶
- Variables
- func AdminApi(w http.ResponseWriter, r *http.Request)
- func CheckPluginStatus(name string) (string, error)
- func ClosePlugin(name string) error
- func GetLogPath() string
- func InitPlugin(log string)
- func NewHttp(addr string) (*http.Server, error)
- func OpenPlugin(name string) error
- func Serve(service Service)
- type Client
- type Config
- type Plugin
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "MOSN_PLUGIN",
MagicCookieValue: "ON",
}
View Source
var PluginMap = map[string]plugin.Plugin{ "MOSN_SERVICE": &Plugin{}, }
Functions ¶
func CheckPluginStatus ¶
CheckPluginStatus check plugin's status
func GetLogPath ¶
func GetLogPath() string
func InitPlugin ¶
func InitPlugin(log string)
Types ¶
type Client ¶
Client is a plugin client, It's primarily used to call request.
type Plugin ¶
type Plugin struct { // GRPCPlugin must still implement the Plugin interface plugin.Plugin // Concrete implementation, written in Go. This is only used for plugins // that are written in Go. Impl Service }
This is the implementation of plugin.GRPCPlugin so we can serve/consume this.
func (*Plugin) GRPCClient ¶
Click to show internal directories.
Click to hide internal directories.