github.com/aaabigfish/gopkg@v1.1.0/mq/kafka/comm.go (about)

     1  package kafka
     2  
     3  import (
     4  	kf "github.com/segmentio/kafka-go"
     5  )
     6  
     7  type Message = kf.Message
     8  type ReaderFunc func(partition int, offset int64, key []byte, val []byte) error
     9  type WriterFunc func(string, string) Writer