MCPcopy Create free account
hub / github.com/evilsocket/sum / GetID

Method GetID

storage/driver.go:18–18  ·  view source on GitHub ↗

GetID must access the protobuf message and return a unique integer identifier that the index will use to map that type of messages.

(m proto.Message)

Source from the content-addressed store, hash-verified

16 // unique integer identifier that the index will use to
17 // map that type of messages.
18 GetID(m proto.Message) uint64
19 // SetID must access the protobuf message and set its
20 // unique integer identifier. This is generally called
21 // by instances of storage.Index when a new object is

Callers 3

pathForMethod · 0.65
LoadMethod · 0.65
UpdateMethod · 0.65

Implementers 2

RecordDriverstorage/record_driver.go
OracleDriverstorage/oracle_driver.go

Calls

no outgoing calls

Tested by

no test coverage detected