Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
Request is the struct for sending a request to the sender worker.
func NewRequest ¶
NewRequest creates a new request object.
func (Request) IncreaseRetry ¶
IncreaseRetry increases the retry count of the request and returns a new request.
type RequestType ¶
type RequestType int
RequestType represents the type of the request.
const ( RequestTypeCreateGroupRound1 RequestType = iota RequestTypeCreateGroupRound2 RequestTypeCreateGroupConfirm RequestTypeCreateGroupComplain RequestTypeUpdateDE RequestTypeSubmitSignature )
type ResponseReceiver ¶
type ResponseReceiver struct {
ReqType RequestType
ResponseCh chan Response
}
ResponseReceiver is the struct for receiving the response from the sender worker.
func NewResponseReceiver ¶
func NewResponseReceiver(reqType RequestType) ResponseReceiver
NewResponseReceiver creates a new response receiver for a request type.
Click to show internal directories.
Click to hide internal directories.