rocketmq

package
v0.0.0-...-da42366 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(cfg Config) *rocketmqConsumer

func NewProducer

func NewProducer(cfg Config) *rocketmqProducer

NewProducer create new kafka producer

Types

type Config

type Config struct {
	Endpoint  string `mapstructure:"end_point" json:"end_point" yaml:"end_point"`
	GroupName string `mapstructure:"group_name" json:"group_name" yaml:"group_name"`
	TopicName string `mapstructure:"topic_name" json:"topic_name" yaml:"topic_name"`
	NameSpace string `mapstructure:"name_space" json:"name_space" yaml:"name_space"`
	AccessKey string `mapstructure:"access_key" json:"access_key" yaml:"access_key"`
	SecretKey string `mapstructure:"secret_key" json:"secret_key" yaml:"secret_key"`
}

Jump to

Keyboard shortcuts

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