Documentation ¶
Index ¶
- func CreateApplication[TServer, TContainer any](t testing.TB, creater AppCreater[TServer, TContainer], configName ...string) (TServer, TContainer)
- func CreateApplicationFunc[TServer, TContainer any](t testing.TB, creater AppCreaterFunc[TServer, TContainer]) (TServer, TContainer)
- func CreateMongoDBWithDBName(t testing.TB, optMaker MongoOptions) (*mongo.Client, string)
- func CreateMySQL(t testing.TB, optMaker MySQLOptions) (*sql.DB, string)
- func CreateScyllaDB(t testing.TB, optMaker ScyllaDBOptions) *gocql.Session
- func CreateTimescaledb(t testing.TB, optMaker TimescaledbOptions) (*sql.DB, string)
- func FindConfig(t testing.TB, configName ...string) string
- func FindFile(t testing.TB, fileName string) string
- func GetConfig[T any](t testing.TB, create func(*viper.Viper) (T, error)) T
- func NewAppTestLogger(t testing.TB, level zerolog.Level) (zerolog.Logger, *zltest.Tester)
- func ProjectRootDir(t testing.TB) string
- func Timeout(t testing.TB, timeout time.Duration) context.Context
- func WorkingDir(t testing.TB) string
- type AppCreater
- type AppCreaterFunc
- type MongoOptions
- type MySQLOptions
- type MySQLOptionsData
- type ScyllaDBOptions
- type TimescaledbOptions
- type TimescaledbptionsData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplication ¶
func CreateApplication[TServer, TContainer any](t testing.TB, creater AppCreater[TServer, TContainer], configName ...string) (TServer, TContainer)
func CreateApplicationFunc ¶
func CreateApplicationFunc[TServer, TContainer any](t testing.TB, creater AppCreaterFunc[TServer, TContainer]) (TServer, TContainer)
func CreateMongoDBWithDBName ¶
func CreateMySQL ¶
func CreateScyllaDB ¶
func CreateScyllaDB(t testing.TB, optMaker ScyllaDBOptions) *gocql.Session
func CreateTimescaledb ¶
func NewAppTestLogger ¶
func ProjectRootDir ¶
func WorkingDir ¶
Types ¶
type AppCreater ¶
type AppCreaterFunc ¶
type MongoOptions ¶
type MongoOptions interface {
GetOptions() *options.ClientOptions
}
type MySQLOptions ¶
type MySQLOptions interface {
GetOptions() MySQLOptionsData
}
type MySQLOptionsData ¶
type ScyllaDBOptions ¶
type ScyllaDBOptions interface {
GetOptions() *gocql.ClusterConfig
}
type TimescaledbOptions ¶
type TimescaledbOptions interface {
GetOptions() TimescaledbptionsData
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.