Documentation
¶
Index ¶
- Variables
- func AppNameAndArgs(cmd string) (appName string, args []string)
- func CreateTopicWithConfig(ctx context.Context, topic kafka.TopicConfig) error
- func DeleteTopic(ctx context.Context, topic string) error
- func GetOutput(cmd *exec.Cmd, wantErr bool) (io.ReadCloser, error)
- func MinifyString(str string) string
- func ReadChanMessages(ctx context.Context, c <-chan consumer.Result) []consumer.Result
- func SendMessage(t *testing.T, brokers []string, topic string, key, message []byte)
- func SendMessageToPartition(t *testing.T, brokers []string, topic string, partition int, ...)
- func SendMultipleMessagesToPartition(t *testing.T, brokers []string, topic string, msgs map[int]string)
- func StreamToRead(wantErr bool, stdout, stderr io.ReadCloser) io.ReadCloser
- type Command
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = 3 * time.Second
View Source
var KafkaRawClient = kafka.Client{ Addr: kafka.TCP("localhost:9093"), Timeout: DefaultTimeout, Transport: nil, }
View Source
var LocalBroker = "localhost:9093"
Functions ¶
func AppNameAndArgs ¶ added in v0.1.3
func CreateTopicWithConfig ¶
func MinifyString ¶ added in v0.1.4
func ReadChanMessages ¶
func SendMessage ¶
func SendMessageToPartition ¶
func SendMultipleMessagesToPartition ¶ added in v0.1.4
func StreamToRead ¶ added in v0.1.3
func StreamToRead(wantErr bool, stdout, stderr io.ReadCloser) io.ReadCloser
Types ¶
Click to show internal directories.
Click to hide internal directories.