Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLogStreamNameValid ¶
log stream name must match [a-zA-Z0-9_:]+
Types ¶
type SegmentFile ¶
type SegmentFile struct { //the segment raft log name SegmentName string `json:"segment_name"` SegmentSizeBytes int64 `json:"segment_size_bytes"` //the max size of segment file //this segment is the last segment in snapshot or not //true:last segment, false means before last segment IsLastSegment bool `json:"is_last_segment"` //if IsLastSegment is true,only read EndPos(include). //Otherwise read the whole file EndPos int64 `json:"end_pos"` FirstVindex int64 `json:"first_vindex"` FirstRindex uint64 `json:"first_rindex"` LastVindex int64 `json:"last_vindex"` LastRindex uint64 `json:"last_rindex"` Checksum string `json:"segment_checksum"` Index *IndexFile }
metadata for snapshot
Click to show internal directories.
Click to hide internal directories.