Documentation
¶
Index ¶
Constants ¶
View Source
const ServiceName = "CentralizedCalypsoService"
ServiceName is used for registration on the onet.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CentralizedCalypsoDB ¶
func NewCentralizedCalypsoDB ¶
func NewCentralizedCalypsoDB(db *bolt.DB, bn []byte) *CentralizedCalypsoDB
func (*CentralizedCalypsoDB) GetWrite ¶
func (cdb *CentralizedCalypsoDB) GetWrite(wID string) (*WriteRequest, error)
func (*CentralizedCalypsoDB) StoreWrite ¶
func (cdb *CentralizedCalypsoDB) StoreWrite(req *WriteRequest) (string, error)
type Client ¶
Client is a structure to communicate with the template service
func (*Client) Write ¶
func (c *Client) Write(r *onet.Roster, wr *WriteRequest) (*WriteReply, error)
type ReadRequest ¶
type Service ¶
type Service struct { // We need to embed the ServiceProcessor, so that incoming messages // are correctly handled. *onet.ServiceProcessor // contains filtered or unexported fields }
Service is our template-service
func (*Service) Write ¶
func (s *Service) Write(req *WriteRequest) (*WriteReply, error)
type WriteReply ¶
type WriteReply struct {
WriteID string
}
Click to show internal directories.
Click to hide internal directories.