Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAGIC_HEADER = "ESDBstream" MAGIC_FOOTER = "closedESDBstream" )
Variables ¶
View Source
var CORRUPTED_EVENT = errors.New("corrupted event")
View Source
var CORRUPTED_HEADER = errors.New("Incorrect stream file header.")
View Source
var FOOTER_LENGTH = int64(len(MAGIC_FOOTER))
View Source
var HEADER_LENGTH = int64(len(MAGIC_HEADER))
View Source
var WRITING_TO_CLOSED_STREAM = errors.New("stream has been closed")
Functions ¶
Types ¶
type Stream ¶
type Stream interface { Write(data []byte, indexes map[string]string) (int, error) First(name, value string) (int64, error) ScanIndex(name, value string, offset int64, scanner Scanner) error Iterate(offset int64, scanner Scanner) (int64, error) Offset() int64 Closed() bool Close() error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.