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