Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct {
// V is a unique identifier.
// example: 123e4567-e89b-12d3-a456-426655440000
// required:true
V *string `json:"id"`
}
ID is a custom type for database-agnostic unique IDs. swagger:model
func (ID) MarshalBSON ¶
MarshalBSON implements the bson.Marshaler interface for Mongo compatibility.
func (*ID) UnmarshalBSON ¶
UnmarshalBSON implements the bson.Unmarshaler interface for Mongo compatibility.
Click to show internal directories.
Click to hide internal directories.