tests

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestingApiServer = configstc.ServerConfig{
	Enable:         true,
	ServerBindAddr: "",
	Port:           10000,
}
View Source
var TestingDBConfig = configstc.DBConfig{
	DbHost:      "192.168.149.128",
	DbPort:      "3306",
	DbUser:      "root",
	DbPassword:  "root",
	DbName:      "db_ubd_frame",
	TablePrefix: "test_",
}

Functions

func GetTestingDBConfig added in v1.0.4

func GetTestingDBConfig() configstc.DBConfig

func NewDi

func NewDi(t *testing.T) *dig.Container

Types

type Person

type Person struct {
	Id      int64  `json:"id"`
	Name    string `json:"name"`    //姓名
	Age     int    `json:"age"`     //年龄
	Address string `json:"address"` //地址
}

func NewPerson

func NewPerson() *Person

Jump to

Keyboard shortcuts

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