Example #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...)
}
Example #2
0
//NewSubscribeRequest creates a new subscription request
func NewSubscribeRequest() Request {
	req := make(Request, 1)
	fb.WriteByte(req, TypeSubscribeRequest)
	return req
}
Example #3
0
//NewReplayRequest creates a new replay request
func NewReplayRequest() Request {
	req := make(Request, 1)
	fb.WriteByte(req, TypeReplayRequest)
	return req
}