implement remote call for remote action
This commit is contained in:
parent
e51377eeb3
commit
92516e20ab
@ -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", ""))
|
||||
|
Loading…
Reference in New Issue
Block a user