Documentation ¶ Index ¶ Variables func Init() func MessageExist(ctx context.Context, key string) int64 func MessageGet(ctx context.Context, key string) ([]string, error) func MessageInsert(ctx context.Context, key string, revkey string, stamp_key int64, field string) error type Message Constants ¶ This section is empty. Variables ¶ View Source var ( RedisDB *redis.Client ) Functions ¶ func Init ¶ func Init() func MessageExist ¶ func MessageExist(ctx context.Context, key string) int64 func MessageGet ¶ func MessageGet(ctx context.Context, key string) ([]string, error) func MessageInsert ¶ func MessageInsert(ctx context.Context, key string, revkey string, stamp_key int64, field string) error Types ¶ type Message ¶ type Message struct { Id int64 ToUserId int64 FromUserId int64 Content string CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` } Source Files ¶ View all Source files chat.go init.go Click to show internal directories. Click to hide internal directories.