Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { ID int64 `mapstructure:"id"` Title string `mapstructure:"title"` Content string `mapstructure:"content"` CreatedAt time.Time `mapstructure:"created_at"` UpdatedAt time.Time `mapstructure:"updated_at"` DeletedAt sql.NullTime `mapstructure:"deleted_at"` UserID int64 `mapstructure:"user_id"` Status uint8 `mapstructure:"status"` PlateID int64 `mapstructure:"plate_id"` Slug string `mapstructure:"slug"` CategoryID int64 `mapstructure:"category_id"` Tags string `mapstructure:"tags"` CommentCount int64 `mapstructure:"comment_count"` }
type SyncConsumer ¶
type SyncConsumer struct {
// contains filtered or unexported fields
}
func NewSyncConsumer ¶
func (*SyncConsumer) Consume ¶
func (r *SyncConsumer) Consume(sess sarama.ConsumerGroupSession, msg *sarama.ConsumerMessage)
Click to show internal directories.
Click to hide internal directories.