Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an implementation of shared.Decrypt that talks over gRPC.
func (*Client) Decrypt ¶
func (c *Client) Decrypt(req *model.DecryptRequest) (*model.DecryptResponse, error)
Decrypt ...
type Plugin ¶
type Plugin struct { // Plugin 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 shared.DecryptorInterface }
GRPCClient is an implementation of shared that talks over gRPC.
func (*Plugin) GRPCClient ¶
func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpcx.ClientConn) (interface{}, error)
GRPCClient - Required method to implement Plugin interface
func (*Plugin) GRPCServer ¶
GRPCServer - Required method to implement Plugin interface
type Server ¶
type Server struct {
Impl shared.DecryptorInterface
}
Server - Here is the gRPC server that Client talks to.
func (*Server) Decrypt ¶
func (s *Server) Decrypt(ctx context.Context, _req *model.DecryptRequest) (*model.DecryptResponse, error)
Decrypt ...
Click to show internal directories.
Click to hide internal directories.