Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶ added in v0.2.0
type ID uint64
ID is the type of the id field used for any entities
func (ID) MarshalJSON ¶ added in v0.2.0
MarshalJSON is the way to encode ID to JSON string.
func (*ID) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON is the way to decode ID from JSON string.
type IDGenerator ¶ added in v0.2.0
type IDGenerator interface { // NextID generates an ID. NextID() ID }
IDGenerator is an interface for generating IDs.
func NewIDGenerator ¶ added in v0.2.0
func NewIDGenerator() (IDGenerator, error)
NewIDGenerator returns an IDGenerator object.
Click to show internal directories.
Click to hide internal directories.