clrpcserver

package
v0.0.0-...-339602a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL