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 that talks over RPC.
func (*Client) Encrypt ¶
func (c *Client) Encrypt(req *model.EncryptRequest) (*model.EncryptResponse, error)
Encrypt ...
type Plugin ¶
type Plugin struct { // Concrete implementation, written in Go. This is only used for plugins // that are written in Go. Impl shared.EncryptorInterface }
Encrypt - this is the interface that we're exposing as a plugin. Plugin - This is the implementation of plugin.Plugin so we can serve/consume this.
type Server ¶
type Server struct {
Impl shared.EncryptorInterface
}
Server - This is the RPC server that Client talks to, conforming to the requirements of net/rpc
func (*Server) Encrypt ¶
func (s *Server) Encrypt(_req *model.EncryptRequest, _resp *model.EncryptResponse) error
Encrypt ...
Click to show internal directories.
Click to hide internal directories.