Commit 8bec68a1e83749a81074acbe3fac31ace729a0bd

Authored by Marko Tikvić
1 parent 2d79a4120f
Exists in master and in 1 other branch v2

added reload tables as a separate func

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
... ... @@ -76,6 +76,13 @@ func InitTables(db *ora.Ses, project string) error {
76 76 return nil
77 77 }
78 78  
  79 +// ReloadTables reloads all payloads in the payloads variable.
  80 +// Returns an error if it fails.
  81 +func ReloadTables(db *ora.Ses, project string) error {
  82 + payloads = make([]payloadBuff, 0)
  83 + return InitTables(db, project)
  84 +}
  85 +
79 86 // DecodeJSON decodes JSON data from r to v.
80 87 // Returns an error if it fails.
81 88 func DecodeJSON(r io.Reader, v interface{}) error {
... ...