Versions in this module Expand all Collapse all v1 v1.0.1 Feb 16, 2024 v1.0.0 Jan 25, 2024 Changes in this version + func AddKafka(h *Helper) error + func AddPostgres(h *Helper) error + func Cleanup() + type Config struct + func Init(options ...option) (Config, error) + func (c Config) KafkaBrokers() []string + func (c Config) PgConfig() DbConfig + type DbClient interface + DB func() *sql.DB + Migrate func(migrateDir string) error + type DbConfig struct + Host string + Name string + Password string + Port int + User string + type HTTPHelper struct + func HTTP() *HTTPHelper + func (h *HTTPHelper) Client(t *testing.T) WebClient + func (h *HTTPHelper) Server(t *testing.T) WebServer + func (h *HTTPHelper) ServerMain(m *testing.M) WebServer + type Helper struct + func (h *Helper) HTTP() *HTTPHelper + func (h *Helper) Kafka() *KafkaHelper + func (h *Helper) Postgres() *PostgresHelper + type KafkaClient interface + Consume func(ctx context.Context, topic string) *sarama.ConsumerMessage + Produce func(topic string, value []byte, h ...sarama.RecordHeader) + ProduceWithKey func(topic string, key []byte, data []byte, headers ...sarama.RecordHeader) + type KafkaHelper struct + func Kafka() *KafkaHelper + func (h *KafkaHelper) Client(t *testing.T) KafkaClient + type PostgresHelper struct + func Postgres() *PostgresHelper + func (p *PostgresHelper) Client(t *testing.T) DbClient + type WebClient interface + Do func(req *http.Request) *http.Response + Get func(url string) *http.Response + GetJSON func(url string, dst any) + type WebServer interface + Addr func() string + Cleanup func() + HandleFunc func(pattern string, handler http.HandlerFunc)