Documentation ¶
Index ¶
- func Clone(b []byte) []byte
- func Equal(a, b []byte) bool
- func GetChangelogPath(commitStorePath string) string
- func GetCommitStorePath(homePath string) string
- func GetStateStorePath(homePath string, backend string) string
- func IndexToVersion(index uint64, initialVersion uint32) int64
- func NextVersion(v int64, initialVersion uint32) int64
- func VersionToIndex(version int64, initialVersion uint32) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
Clone returns a copy of b[:len(b)]. The result may have additional unused capacity. Clone(nil) returns nil.
func Equal ¶
Equal reports whether a and b are the same length and contain the same bytes. A nil argument is equivalent to an empty slice.
func GetChangelogPath ¶ added in v0.0.8
func GetCommitStorePath ¶ added in v0.0.23
func GetStateStorePath ¶ added in v0.0.23
func IndexToVersion ¶ added in v0.0.8
IndexToVersion converts rlog index to version, reverse of versionToIndex
func NextVersion ¶ added in v0.0.8
NextVersion get the next version
func VersionToIndex ¶ added in v0.0.8
VersionToIndex converts version to rlog index based on initial version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.