test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointConfig

type EndpointConfig struct {
	Address string `yaml:"address"`
	Port    int    `yaml:"port"`
}

type UnitConfig

type UnitConfig struct {
	Redis *struct {
		// 数据库名
		DB int `yaml:"db"`
		// 连接地址
		Endpoint *EndpointConfig `yaml:"endpoint"`
		// 校验密码
		Auth string `yaml:"auth"`
	} `yaml:"redis"`
}
var Conf *UnitConfig

func DecodeUnitConfigFromLocal

func DecodeUnitConfigFromLocal(configPath string) *UnitConfig

从本地解析单测配置文件

Jump to

Keyboard shortcuts

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