Documentation
¶
Index ¶
- func GetMessage(channelId, channelType, messageId string) (*message.Message, error)
- func GetMessageList(channelId, channelType, next string, direction QueryDirection, limit int) ([]*message.Message, []*message.Message, error)
- func SaveMessage(data *message.Message, channelId, channelType string) error
- func StartMessageDB(messageLimit int) error
- type MessageDB
- type QueryDirection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessage ¶
GetMessage 获取消息
func GetMessageList ¶
func GetMessageList(channelId, channelType, next string, direction QueryDirection, limit int) ([]*message.Message, []*message.Message, error)
GetMessageList 获取消息列表
func SaveMessage ¶
SaveMessage 保存消息
Types ¶
type QueryDirection ¶
type QueryDirection string
QueryDirection 查询方向
const ( // QueryDirectionBefore 之前 QueryDirectionBefore QueryDirection = "before" // QueryDirectionAfter 之后 QueryDirectionAfter QueryDirection = "after" // QueryDirectionAround 周围 QueryDirectionAround QueryDirection = "around" )
Click to show internal directories.
Click to hide internal directories.