Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialog ¶
type Dialog struct { ID int User string // username Meta DialogMeta }
Dialog holds dialog reference in different messagers
type DialogMeta ¶
DialogMeta stores serialize dialog reference for messagers
type Message ¶
type Message struct { ID int Text string Attachment string System string Direction string Proactive bool PayloadType string PayloadValue string }
Message is used for messagers
type User ¶
type User struct { ID int // id is passed to domain model for simplicity Service bool // if user is a service Username string DisplayName string // human readable name Password string PasswordHash string Email string // TODO: add ent validation Meta UserMeta // stores messagers ids }
User holds user data
type UserMessagerData ¶
UserMessagerData stores users data for a specific messager
type UserMeta ¶
type UserMeta struct { Teams UserMessagerData Telegram UserMessagerData Slack UserMessagerData }
UserMeta stores users data for messagers
Click to show internal directories.
Click to hide internal directories.