Documentation ¶
Index ¶
- Constants
- type Chain
- type KafkaSender
- type MqAccountBlock
- type Producer
- func (producer *Producer) BrokerList() []string
- func (producer *Producer) Deserialize(buffer []byte) error
- func (producer *Producer) IsSame(brokerList []string, topic string) bool
- func (producer *Producer) Serialize() ([]byte, error)
- func (producer *Producer) Start() error
- func (producer *Producer) Stop()
- func (producer *Producer) Topic() string
Constants ¶
View Source
const ( DBKP_PRODUCER = byte(1) DBKP_PRODUCER_HAS_SEND = byte(2) )
View Source
const ( STOPPED = iota RUNNING )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaSender ¶
type KafkaSender struct {
// contains filtered or unexported fields
}
func NewKafkaSender ¶
func NewKafkaSender(chain Chain, dirName string) (*KafkaSender, error)
func (*KafkaSender) Start ¶
func (sender *KafkaSender) Start(brokerList []string, topic string) error
func (*KafkaSender) Stop ¶
func (sender *KafkaSender) Stop(brokerList []string, topic string)
func (*KafkaSender) StopAll ¶
func (sender *KafkaSender) StopAll()
type MqAccountBlock ¶
type MqAccountBlock struct { ledger.AccountBlock Balance *big.Int }
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducerFromDb ¶
func (*Producer) BrokerList ¶
func (*Producer) Deserialize ¶
Click to show internal directories.
Click to hide internal directories.