Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyMessageAckIndex ¶
Types ¶
type GroupMember ¶
type IDGenerator ¶
type IDGenerator struct {
// contains filtered or unexported fields
}
func NewIDGenerator ¶
func NewIDGenerator(nodeID int64) (*IDGenerator, error)
func (*IDGenerator) Next ¶
func (g *IDGenerator) Next() snowflake.ID
func (*IDGenerator) ParseBase36 ¶
func (g *IDGenerator) ParseBase36(id string) (snowflake.ID, error)
type MessageContent ¶
type MessageIndex ¶
type MessageIndex struct { ID int64 `gorm:"primary_key;auto_increment;not null"` AccountA string `gorm:"size:60;not null;index"` AccountB string `gorm:"size:60;not null;comment:'The other party account'"` Direction byte `gorm:"not null;default:0;comment:'0:A is the sender,1:A is the receiver'"` MessageID int64 `gorm:"not null"` Group string `gorm:"size:30;not null;comment:'Group ID'"` SendTime int64 `gorm:"not null;index"` }
Click to show internal directories.
Click to hide internal directories.