WIP enforcing policies on process level

This commit is contained in:
Ingo Oppermann
2023-02-14 15:23:50 +01:00
parent a186307746
commit a9459bda7c
7 changed files with 434 additions and 219 deletions

View File

@@ -76,3 +76,12 @@ func DefaultQuery(c echo.Context, name, defValue string) string {
return param
}
func DefaultContext(c echo.Context, name, defValue string) string {
value, ok := c.Get(name).(string)
if !ok {
return defValue
}
return value
}