Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { ID uuid.UUID `json:"id"` Date time.Time `json:"date"` PathParam string `json:"pathParam"` Body string `json:"body"` Version Version `json:"version"` Metadata Metadata `json:"metadata"` }
Document is a retrieved document.
type NewDocument ¶ added in v1.93.1
type NewDocument struct {
Content string `json:"content"`
}
NewDocument contains the content the data to create a new document.
type Professional ¶ added in v1.95.1
Professional contains the company and the position where a person works.
type User ¶ added in v1.93.1
type User struct { Name string `json:"name"` Surname string `json:"surname"` Email string `json:"email"` Professional }
User contains information of a user.
type UserAge ¶ added in v1.95.1
type UserAge[T ~int16 | int32 | int64] struct { Day uint8 `json:"day"` Month uint8 `json:"month"` Year T `json:"year"` }
UserAge represents a user's age.
The value is generic for being able to increase the year's size to afford to recompile the code when we have users that were born in a too far DC year or allow to register users in a few years in the future. JOKING, we need it for testing that the API generator works fine with them.
Click to show internal directories.
Click to hide internal directories.