setup

package
v0.0.0-...-3414fa2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	zrpc.RpcServerConf

	Mysql struct {
		DataSource string
	}

	CacheRedis cache.CacheConf

	RabbitMQ struct {
		Host              string
		Port              int
		Username          string
		Password          string
		VHost             string
		ConnectionTimeout int
		HeartbeatInterval int
	}
}

type TestContext

type TestContext struct {
	Config *Config
	DB     *helpers.DBHelper
	RMQ    *helpers.RMQHelper
}

TestContext holds all the dependencies required for e2e testing

func NewTestContext

func NewTestContext() (*TestContext, error)

NewTestContext creates and initializes a new test context

func (*TestContext) Close

func (tc *TestContext) Close() error

Close releases all resources held by the test context

Jump to

Keyboard shortcuts

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