Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvPluginListenerAddress = "ENV_PLUGIN_LISTENER_ADDRESS" EnvAllowPluginRpcProtocol = "ENV_ALLOW_PLUGIN_RPC_PROTOCOL" EnvRequestVersion = "ENV_REQUEST_VERSION" MsgCoreVersion = "CoreVersion" MsgVersion = "Version" MsgAddress = "Address" MsgRpcProtocol = "RPCProtocol" MsgDone = "DONE" )
Variables ¶
View Source
var CoreProtocolVersion, _ = utils.NewSemVerFromString("1.0.0-rc1")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ClientConfig) (*Client, error)
type ClientConfig ¶
type ClientInstanceInterface ¶
type ClientInterface ¶
type ClientInterface interface { Initialization() error UnInitialization() error Deploy(name string) (interface{}, error) Ping(name string) error }
func NewGRPCClient ¶
func NewGRPCClient(context context.Context, config *ClientConfig) (ClientInterface, error)
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func (*GRPCClient) Deploy ¶
func (c *GRPCClient) Deploy(name string) (interface{}, error)
func (*GRPCClient) Initialization ¶
func (c *GRPCClient) Initialization() error
func (*GRPCClient) Ping ¶
func (c *GRPCClient) Ping(name string) error
func (*GRPCClient) UnInitialization ¶
func (c *GRPCClient) UnInitialization() error
Click to show internal directories.
Click to hide internal directories.