ut

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 4 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 {
	RedisDSN string `yaml:"redis_dsn"`
	MysqlDSN string `yaml:"mysql_dsn"`

	//
	// redis
	//
	RedisOpt *redis.Options `yaml:"-"`
}

func SetupAndCheckFlags added in v0.0.5

func SetupAndCheckFlags(t *testing.T, flags Flag) *Config

func SetupAndCheckFlagsEx added in v0.0.5

func SetupAndCheckFlagsEx(t *testing.T, fileName string, configPaths []string, flags Flag) *Config

func SetupUTConfig

func SetupUTConfig() *Config

func SetupUTConfigEx

func SetupUTConfigEx(fileName string, configPaths []string) *Config

type Flag added in v0.0.5

type Flag int
const (
	FlagMySQL Flag = 1 << iota
	FlagRedis
)

Jump to

Keyboard shortcuts

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