Documentation
¶
Index ¶
- Variables
- func Clone(b []byte) []byte
- func Equal(a, b []byte) bool
- func GetChangelogPath(dbPath string) string
- func GetMemIavlDBPath(homePath string) string
- func IndexToVersion(index uint64, initialVersion uint32) int64
- func Join(errs ...error) error
- func NextVersion(v int64, initialVersion uint32) int64
- func VersionToIndex(version int64, initialVersion uint32) uint64
Constants ¶
This section is empty.
Variables ¶
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 GetMemIavlDBPath ¶ added in v0.0.8
func IndexToVersion ¶ added in v0.0.8
IndexToVersion converts rlog index to version, reverse of versionToIndex
func Join ¶
Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if errs contains no non-nil values. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string.
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.