Documentation ¶
Index ¶
- Variables
- func Serve(model Model)
- type ClientGRPC
- type Level
- type Model
- type ModelGRPCPlugin
- type Plugin
- type Response
- func (res Response) Array() ([]interface{}, error)
- func (res Response) Bind(v interface{}) error
- func (res Response) Interface() (interface{}, error)
- func (res Response) Map() (maps.MapStrAny, error)
- func (res Response) MustArray() []interface{}
- func (res Response) MustBind(v interface{})
- func (res Response) MustInterface() interface{}
- func (res Response) MustMap() maps.MapStrAny
- func (res Response) MustValue() interface{}
- func (res Response) Value() (interface{}, error)
- type ServerGRPC
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "GOU_MODEL_PLUGIN",
MagicCookieValue: "GOU VER0.6.0",
}
View Source
var PluginMap = map[string]plugin.Plugin{ "model": &ModelGRPCPlugin{}, }
Functions ¶
Types ¶
type ClientGRPC ¶
type ClientGRPC struct {
// contains filtered or unexported fields
}
type ModelGRPCPlugin ¶
type ModelGRPCPlugin struct { plugin.Plugin Impl Model }
func (*ModelGRPCPlugin) GRPCClient ¶
func (p *ModelGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*ModelGRPCPlugin) GRPCServer ¶
func (p *ModelGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type Response ¶
func (Response) MustInterface ¶
func (res Response) MustInterface() interface{}
Click to show internal directories.
Click to hide internal directories.