Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Config ¶
type Config struct {
BrokerUrl []string `json:"broker_url" mapstructure:"broker_url"`
}
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) ConsumePartition ¶
func (w *Worker) ConsumePartition(topic string, action func(topic, message string) WorkerStatus) grerrors.Error
ConsumePartition set waiting to receive kafka message from producer
type WorkerStatus ¶
type WorkerStatus string
const ( WorkerStatusSuccess WorkerStatus = "success" WorkerStatusTerminate WorkerStatus = "terminate" WorkerStatusFail WorkerStatus = "fail" )
Click to show internal directories.
Click to hide internal directories.