Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader interface {
// LoadFromFile 从文件加载并执行配置
LoadFromFile(ctx context.Context, filePath string) error
// LoadFromConfig 从配置对象加载并执行
LoadFromConfig(ctx context.Context, cfg *structure.Config) error
}
Loader 配置加载器,负责加载和执行配置文件
func NewLoader ¶
func NewLoader( modelSvc modelSvc.Service, modelGroupSvc modelSvc.MGService, attributeSvc attributeSvc.Service, relationRTSvc relationSvc.RelationTypeService, relationRMSvc relationSvc.RelationModelService, ) Loader
NewLoader 创建加载器
Click to show internal directories.
Click to hide internal directories.