Documentation ¶
Overview ¶
Package clrpcserver implements client and server RPC methods to call Cypherlock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCMethods ¶
type RPCMethods struct {
// contains filtered or unexported fields
}
RPCMethods defines the methods for a Cypherlock RPC server.
func (*RPCMethods) Decrypt ¶
func (rm *RPCMethods) Decrypt(params types.RPCTypeDecrypt, reply *types.RPCTypeDecryptResponse) error
Decrypt the message and return it's payload. Only use over TLS.
func (*RPCMethods) GetKeys ¶
func (rm *RPCMethods) GetKeys(params types.RPCTypeNone, reply *types.RPCTypeGetKeysResponse) error
GetKeys returns the current pregenerated keys.
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
RPCServer implements a Cypherlock RPC server over http(s).
func NewRPCServer ¶
func NewRPCServer(server *ratchetserver.RatchetServer, listenAddr string) (*RPCServer, error)
NewRPCServer creates a new RPC server and starts it.
Click to show internal directories.
Click to hide internal directories.