Documentation
¶
Index ¶
- Constants
- func CreateSegmentFile(directory string, segmentId int) (*os.File, error)
- func FindLastSegmentId(files []string) (uint, error)
- func MustMarshal(entry *types.WAL_Entry) []byte
- func MustUnmarshal(data []byte, entry *types.WAL_Entry)
- func UnmarshalAndVerifyEntry(data []byte) (*types.WAL_Entry, error)
Constants ¶
View Source
const ( SyncInterval = 200 * time.Millisecond SegmentPrefix = "segment-" )
Variables ¶
This section is empty.
Functions ¶
func CreateSegmentFile ¶
creates new segment file with given id in provided directory and returns it
func FindLastSegmentId ¶
finds last segment id in the list of files
func MustMarshal ¶
func MustUnmarshal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.