Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Staple ¶
type Staple struct {
Name string `json:"name"`
ID int `json:"id"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
Archived bool `json:"archived"`
}
Staple defines a Staple in the system.
type User ¶
type User struct {
// Email will be used as username.
Email string `json:"email"`
// Password
Password string `json:"password"`
// Confirm code -- ignore in json
ConfirmCode string `json:"-"`
// Maximum number of staples
MaxStaples int `json:"max_staples"`
}
User defines a user of the system.
Click to show internal directories.
Click to hide internal directories.