Documentation
¶
Index ¶
- Constants
- func InjectDataPath(s *DataPath)
- func LoadDataPath() baseiface.ISingleton
- type DataPath
- func (this *DataPath) ParseDataFileEs() (map[string]any, error)
- func (this *DataPath) ReadEsFile(filename string) (string, error)
- func (this *DataPath) ReadFile(filename string) (string, error)
- func (this *DataPath) WriteFile(filename string, model any) error
- func (this *DataPath) WriteFiles(req any, res any) error
Constants ¶
View Source
const (
ES_FILE_JSON = "order_query_agg.json"
)
Variables ¶
This section is empty.
Functions ¶
func InjectDataPath ¶
func InjectDataPath(s *DataPath)
func LoadDataPath ¶
func LoadDataPath() baseiface.ISingleton
Types ¶
type DataPath ¶
type DataPath struct {
basedto.BaseEntitySingle
RootDir string `json:"root_dir"`
DataInPath string `json:"data_in_path"`
DataInPathEs string `json:"data_in_path_es"`
DataOutPath string `json:"data_out_path"`
DataFileEs string `json:"data_file_es"`
}
func NewDataPath ¶
func NewDataPath() *DataPath
Click to show internal directories.
Click to hide internal directories.