Esempio n. 1
0
//NewWriteRequest creates a new write request
func NewWriteRequest(logEntry LogEntry) Request {
	req := make(Request, 1)
	fb.WriteByte(req, TypeWriteRequest)
	return append(req, logEntry...)
}
Esempio n. 2
0
//NewSubscribeRequest creates a new subscription request
func NewSubscribeRequest() Request {
	req := make(Request, 1)
	fb.WriteByte(req, TypeSubscribeRequest)
	return req
}
Esempio n. 3
0
//NewReplayRequest creates a new replay request
func NewReplayRequest() Request {
	req := make(Request, 1)
	fb.WriteByte(req, TypeReplayRequest)
	return req
}