consumer

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Messages

func Messages(ctx *gin.Context)

Messages consumer kafka partition messages

Types

type MessagesRequest

type MessagesRequest struct {
	Topic         string `json:"topic"          form:"topic"   binding:"required"` //consumer topic name
	Brokers       string `json:"brokers"        form:"brokers" binding:"required"` //kafka brokers
	ConsumerGroup string `json:"consumer_group" form:"consumer_group"`             //consumer group name, default generate random name
	Count         int    `json:"count"          form:"count"`                      //message count, range 1~10, default 10
	TimeWait      int    `json:"time_wait"      form:"time_wait"`                  //time wait 2 consumer message, range 1~60 second, default 3 second
}

MessagesRequest request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL