Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Name is the cohort protocol Name = "cohort" // PIRUI stores the URI for the message type PIURI = "https://dedis.epfl.ch/cohort/1.0" // CreateCohortMsgType represents a new cohort creation message CreateCohortMsgType = PIURI + "/create" CreateCohortSuccessMsgType = PIURI + "/success" CreateCohortErrorMsgType = PIURI + "/error" )
View Source
const ( // StateReceiverCreate denotes a cohort creation was requested. StateReceiverCreate = "receiver_create" // StateReceiverCreated denotes the cohort was created. StateReceiverCreated = "receiver_created" // StateReceiverCreateError marks an error during creation. StateReceiverCreateError = "receiver_create_error" // StateReceiverCreate denotes a cohort creation was requested. StateSenderCreate = "sender_create" // StateSenderCreated denotes the cohort was created. StateSenderCreated = "sender_created" // StateSenderCreateError marks an error during creation. StateSenderCreateError = "sender_create_error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContinueOptions ¶
type ContinueOptions struct {
CreateCohortSuccess *CreateCohortSuccess
CreateCohortError *CreateCohortError
}
ContinueOptions represents options that may be passed in the call to `Continue` on an action event.
type CreateCohort ¶
type CreateCohort struct {
ID string `json:"@id"`
Type string `json:"@type"`
Synopsis string `json:"synopsis"`
CohortID string `json:"cohortID"`
Size int `json:"size"`
Description string `json:"description"`
MoreInfoLink string `json:"moreInfoLink"`
AcceptText string `json:"acceptText"`
DenyText string `json:"denyText"`
Contact string `json:"contact"`
}
type CreateCohortError ¶
type CreateCohortSuccess ¶
type Service ¶
func (*Service) HandleInbound ¶
func (*Service) HandleOutbound ¶
HandleOutbound handles outbound cohort messages.
Click to show internal directories.
Click to hide internal directories.