Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMessageNotFound = errors.New("Message Not Found")
Predefined error instance so that controller can easily figure out which type of error GetByUUID() returned
View Source
var ErrValidationError = errors.New("Message Text cannot be empty")
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Id int `json:"id" db:"id"` Uuid string `json:"uuid" db:"uuid"` Text string `json:"text" db:"text"` CreatedOn time.Time `json:"created_on" db:"created_on"` }
type that represents Message entity
Click to show internal directories.
Click to hide internal directories.