# Functions

API Request path "/api", response json rest api spec.
ConfigPeersGet Receive a GET request with index on path and return Status Code 200 and Peer json containing url, Status Code 404 if not found.
ConfigPeersPut It receives a PUT request with a json containing a Peer url and returns Status Code 200.
Delete Deprecated API It receives a POST request with a json containing a DeleteRequest with key and returns Status 200 if succeed, 404 otherwise.
GetPartyInfo It receives a POST request with a json containing url and key, returns local publicKeys and a proof that private key is known.
GetVersion Request path "/version", response plain text version ID.
Metrics Receive a GET request and return Status Code 200 and server internal status information in plain text.
Push It receives a POST request with a payload and returns Status Code 201 with a payload generated hash, on error returns Status Code 500.
PushTransactionForOtherNodes will push encrypted transaction to other nodes.
Receive is a Deprecated API It receives a ReceiveRequest json with an encoded key (hash) and to values, returns decrypted payload.
ReceiveRaw Receive a GET request with header params bb0x-key and bb0x-to, return unencrypted payload.
Resend It receives a POST request with a json ResendRequest containing type (INDIVIDUAL, ALL), publicKey and key(for individual requests), it returns encoded payload for INDIVIDUAL or it does one push request for each payload and returns empty for type ALL.
RetrieveAndDecryptPayload will retrieve and decrypt the payload.
RetrieveJSONPayload will retrieve payload based on request.
Send It receives json SendRequest with from, to and payload, returns Status Code 200 and json KeyJSON with encoded key.
SendRaw It receives headers "bb0x-from" and "bb0x-to", payload body and returns Status Code 200 and encoded key plain text.
SendSignedTx It receives header "bb0x-to" and raw transaction hash body and returns Status Code 200 and transaction hash.
SetLogger set the logger.
StoreRaw It receives a POST request with a payload and returns Status Code 201 with a payload generated hash, on error returns Status Code 500.
TransactionDelete It receives a DELETE request with a key on path string and returns 204 if succeed, 404 otherwise.
TransactionGet it receives a GET request with a hash on path and query var "to" with encoded hash and to, returns decrypted payload.
UnknownRequest will debug unknown reqs.
Upcheck Request path "/upcheck", response plain text upcheck message.

# Structs

KeyJSON marshal/unmarshal a key.
PeerURL will marshal/unmarshal url.
ReceiveRequest marshal/unmarshal key and to.
ReceiveResponse will marshal/unmarshal payload.
ResendRequest will marshal/unmarshal type, pub and pk.
SendRequest will marshal/unmarshal payload from and to.
StoreRawRequest will marshal/unmarshal payload and from.