remotetest

package
v0.0.0-...-3014034 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPostgresClient

func SetupPostgresClient(t *testing.T, runMigration bool) *pgxpool.Pool

func SetupRedisClient

func SetupRedisClient(t *testing.T) *redis.Client

Types

type KafkaContainer

type KafkaContainer struct {
	Address string
	Topics  sync.Map
}

func CreateKafkaContainer

func CreateKafkaContainer() (*KafkaContainer, error)

func (*KafkaContainer) CreateTopic

func (k *KafkaContainer) CreateTopic(topic string) error

func (*KafkaContainer) Purge

func (k *KafkaContainer) Purge() error

type PostgresContainer

type PostgresContainer struct {
	// contains filtered or unexported fields
}

func CreatePostgres

func CreatePostgres() (*PostgresContainer, error)

func (*PostgresContainer) CreateConnPool

func (pg *PostgresContainer) CreateConnPool() (*pgxpool.Pool, error)

func (*PostgresContainer) Purge

func (pg *PostgresContainer) Purge() error

func (*PostgresContainer) RunMigrations

func (pg *PostgresContainer) RunMigrations() error

type RedisServer

type RedisServer struct {
	// contains filtered or unexported fields
}

func SetupRedisServer

func SetupRedisServer() (*RedisServer, error)

func (*RedisServer) FastForward

func (rs *RedisServer) FastForward(d time.Duration)

func (*RedisServer) Purge

func (rs *RedisServer) Purge()

func (*RedisServer) SetupRedisClient

func (rs *RedisServer) SetupRedisClient() *redis.Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL