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