sk-matrix-project/backend/golang/matrix-middle-service/pkg/config/datasources.go
Shikong c5c3633ac4 添加 数据源配置
数据源初始化
多数据源初步支持
2023-02-26 21:10:43 +08:00

14 lines
271 B
Go

package config
type DataSources = []DataSourcesType[any]
type DataSourcesType[T any] struct {
Type string `comment:"数据源类型"`
Enable bool `comment:"是否启用"`
Config T `comment:"配置项"`
}
type DataSourcesConfig interface {
Name() string
}