MCPcopy
hub / github.com/dgraph-io/dgraph / Term

Method Term

raftwal/log.go:60–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58type entry []byte
59
60func (e entry) Term() uint64 { return binary.BigEndian.Uint64(e) }
61func (e entry) Index() uint64 { return binary.BigEndian.Uint64(e[8:]) }
62func (e entry) DataOffset() uint64 { return binary.BigEndian.Uint64(e[16:]) }
63func (e entry) Type() uint64 { return binary.BigEndian.Uint64(e[24:]) }

Callers 1

GetRaftEntryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected