Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type MessagesModel ¶
type MessagesModel interface { GetListByChannelId(channelId string, minId int64) ([]Messages, error) // contains filtered or unexported methods }
MessagesModel is an interface to be customized, add more methods here, and implement the added methods in customMessagesModel.
func NewMessagesModel ¶
func NewMessagesModel(conn sqlx.SqlConn) MessagesModel
NewMessagesModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.