Struct exocore_discovery::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
Discovery service client.
The discovery service is a simple REST API on which clients can push temporary payload for which the server generates a random PIN. Another client can then retrieve that payload by using the generated random PIN. Once a payload is consumed, it is deleted.
Implementations
Creates a new payload on the server. If successfully created, the response contains a unique pin that can be used by another client to retrieve the payload.
Gets a payload by unique pin created by the call to create
by another
client.
Gets a payload by unique pin created by the call to create
by another
client and retries fetching if it hasn’t been found it until
timeout
.
Replies to a payload on the server using the given reply pin and authentication token. If successfully created, the response contains can be retrieved using the reply pin.