basedata

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 FindBeanDataPath

func FindBeanDataPath() *DataPath

FindBeanDataPath

func NewDataPath

func NewDataPath() *DataPath

func (*DataPath) ParseDataFileEs

func (this *DataPath) ParseDataFileEs() (map[string]any, error)

func (*DataPath) ReadEsFile

func (this *DataPath) ReadEsFile(filename string) (string, error)

func (*DataPath) ReadFile

func (this *DataPath) ReadFile(filename string) (string, error)

func (*DataPath) WriteFile

func (this *DataPath) WriteFile(filename string, model any) error

func (*DataPath) WriteFiles

func (this *DataPath) WriteFiles(req any, res any) error

Jump to

Keyboard shortcuts

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