Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigEntry ¶
ConfigEntry represents topic configuration.
type FlowKafka ¶
type FlowKafka interface { CreateTopic(topic string, numPartitions int, replicationFactor int, retentionMs string) error DeleteTopic(topic string) error DescribeTopic(topic string) (*Topic, error) Produce(topic string, msg []byte) error }
FlowKafka is an interface representing operations that can be executed with Kafka Cluster.
func NewFlowKafka ¶
func NewFlowKafka(c *ServiceConfig) FlowKafka
NewFlowKafka create new instance of service
type ServiceConfig ¶
type ServiceConfig struct { BootstrapBroker string // contains filtered or unexported fields }
type Topic ¶
type Topic struct { Name string `json:"name,omitempty"` Configs []*ConfigEntry `json:"configs,omitempty"` ErrorMsg *string `json:"errorMsg,omitempty"` }
Topic represents kafka topic.
Click to show internal directories.
Click to hide internal directories.