Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { ID int64 `mapstructure:"id"` PostID uint `mapstructure:"post_id"` Title string `mapstructure:"title"` Content string `mapstructure:"content"` CreatedAt int64 `mapstructure:"created_at"` UpdatedAt int64 `mapstructure:"updated_at"` UserID int64 `mapstructure:"author_id"` Status uint8 `mapstructure:"status"` Remark string `mapstructure:"remark"` }
type CheckConsumer ¶
type CheckConsumer struct {
// contains filtered or unexported fields
}
func NewCheckConsumer ¶
func NewCheckConsumer(client sarama.Client, l *zap.Logger, repo repository.PostRepository, checkCache cache.CheckCache) *CheckConsumer
func (*CheckConsumer) Consume ¶
func (r *CheckConsumer) Consume(sess sarama.ConsumerGroupSession, msg *sarama.ConsumerMessage) error
Click to show internal directories.
Click to hide internal directories.