Documentation ¶
Index ¶
- Constants
- func GetFreePort(host string) (int, error)
- func GetFreePortFallback(host string) (int, error)
- func GetOutboundIP() string
- func StartKafka(ctx context.Context) (kafkaUrl string, terminateFunction func(context.Context), err error)
- func StartKafkaContainer(ctx context.Context) (kafkaUrl string, terminateFunction func(context.Context), err error)
- func StartKafkaWithEnv(ctx context.Context, env map[string]string) (kafkaUrl string, terminateFunction func(context.Context), err error)
- type Waiter
Constants ¶
View Source
const DefaultTimeout = 15 * time.Second
View Source
const DockerComposeFile = `` /* 1279-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
inspired by https://github.com/phayes/freeport
func GetFreePortFallback ¶
func GetOutboundIP ¶
func GetOutboundIP() string
Get preferred outbound ip of this machine see https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go
func StartKafka ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.