Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorParse indicates an error while parsing the protobuf-file. ErrorParse = iota + 4000 )
View Source
const ServiceName = "Template"
ServiceName is used for registration on the onet.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*onet.Client
}
Client is a structure to communicate with the template service
func (*Client) Clock ¶
func (c *Client) Clock(r *onet.Roster) (*ClockReply, error)
Clock chooses one server from the Roster at random. It sends a Clock to it, which is then processed on the server side via the code in the service package.
Clock will return the time in seconds it took to run the protocol.
type Clock ¶
type Clock struct {
Roster *onet.Roster
}
Clock will run the tepmlate-protocol on the roster and return the time spent doing so.
type ClockReply ¶
ClockReply returns the time spent for the protocol-run.
type CountReply ¶
type CountReply struct {
Count int
}
CountReply returns the number of protocol-runs
Directories ¶
Path | Synopsis |
---|---|
* This is a template for creating an app.
|
* This is a template for creating an app. |
Conode is the main binary for running a Cothority server.
|
Conode is the main binary for running a Cothority server. |
Package protocol contains an example demonstrating how to write a protocol and a simulation.
|
Package protocol contains an example demonstrating how to write a protocol and a simulation. |
Click to show internal directories.
Click to hide internal directories.