Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UninitializedEntryID provides an invalid value for EntryID (since // its default value is valid). Entries removed from the table will be // set to this ID. UninitializedEntryID = EntryID{-1} )
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface {
// SetID will set the id of an entry on a table when AddEntry() is
// called. The id can be used in the GetEntry() and RemoveEntry() calls.
SetID(id EntryID)
}
Entry is an interface for table entries
type EntryID ¶
type EntryID struct {
ID int
}
EntryID is a table entry identifier NB: we wrap this to get some type safety for the SetID() methof of the Entry interface
Click to show internal directories.
Click to hide internal directories.