kafkaclient

package
v0.18.10 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducer

type KafkaProducer struct {
	kline.MarketConfig
	*kafka.Writer
}

func NewKafkaProducer

func NewKafkaProducer(url string, cfg *appcfg.StreamConfig) *KafkaProducer

func (*KafkaProducer) RefreshMarketIDMap

func (kp *KafkaProducer) RefreshMarketIDMap(data *kline.KlineData, logger log.Logger) error

func (*KafkaProducer) SendAllMsg

func (kp *KafkaProducer) SendAllMsg(data *kline.KlineData, logger log.Logger) (map[string]int, error)

Jump to

Keyboard shortcuts

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