Documentation ¶
Index ¶
Constants ¶
View Source
const ( PostCreatedEventName = "event:postCreated" UpdateNewsLinesCommandName = "command:updateNewsLines" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { ID uuid.UUID `db:"id" json:"id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` DeletedAt *time.Time `db:"deleted_at" json:"deleted_at"` AuthorID uuid.UUID `db:"author_id" json:"author_id"` Author Author `db:"-" json:"author"` Text string `db:"text" json:"text"` }
type PostCreatedEvent ¶
type PostCreatedEvent struct {
Post Post `json:"post"`
}
type UpdateNewsLineCommand ¶
type UpdateNewsLineCommand struct {
Followers []uuid.UUID `json:"followers"`
}
Click to show internal directories.
Click to hide internal directories.