Documentation ¶
Index ¶
- Constants
- func GetElements(topic int, offset int64, nbElements int) ([]interface{}, error)
- func GetLastElement(topic int) (interface{}, error)
- func GetLastElementWithRetryOnError(topic int) interface{}
- func GetTopic(topic int) string
- func IsTopicEmpty(topic int) bool
- func NewReader(topic int) *kafka.Reader
- func NewReaderNextMessage(topic int) *kafka.Reader
- func NewReaderXElementsBeforeLastMessage(topic int, x int64) *kafka.Reader
- func NewSyncWriter(topic int) *kafka.Writer
- func NewWriter(topic int) *kafka.Writer
- func ReadOffset(topic int) (offset int64, err error)
- func ReadOffsetWithRetryOnError(topic int) (offset int64)
- func WriteMessage(w *kafka.Writer, m KafkaMessage) error
- type Config
- type KafkaMessage
- type KafkaMessageWithAHash
Constants ¶
View Source
const ( TopicIndexBlock = 0 TopicFiltersBlock = 1 TopicTrades = 2 TopicTradesBlock = 3 TopicFiltersBlockHistorical = 4 TopicTradesHistorical = 5 TopicTradesBlockHistorical = 6 TopicSuppliesBlock = 7 TopicOptionOrderBook = 13 )
Variables ¶
This section is empty.
Functions ¶
func GetLastElement ¶
func GetLastElementWithRetryOnError ¶
func GetLastElementWithRetryOnError(topic int) interface{}
func IsTopicEmpty ¶
func NewReaderNextMessage ¶
func NewReaderNextMessage(topic int) *kafka.Reader
func NewSyncWriter ¶
func NewSyncWriter(topic int) *kafka.Writer
func WriteMessage ¶
func WriteMessage(w *kafka.Writer, m KafkaMessage) error
Types ¶
type KafkaMessage ¶
type KafkaMessageWithAHash ¶
type KafkaMessageWithAHash interface {
Hash() string
}
Click to show internal directories.
Click to hide internal directories.