implement remote call for remote action

This commit is contained in:
mr 2024-08-12 16:44:01 +02:00
parent e51377eeb3
commit 92516e20ab

View File

@ -62,6 +62,16 @@ type LibData struct {
Err string `bson:"error" json:"error"`
}
var paths map[LibDataEnum]interface{} = map[LibDataEnum]interface{}{}
func GetPath(collection LibDataEnum) string {
return paths[collection].(string)
}
func AddPath(collection LibDataEnum, path string) {
paths[collection] = path
}
func Init(appName string) {
logs.SetAppName(appName)
logs.SetLogger(logs.CreateLogger("main", ""))