21 lines
564 B
Go
21 lines
564 B
Go
package installation
|
|
|
|
import (
|
|
plugin "simrs-vx/internal/use-case/simgos-sync-plugin/new/installation"
|
|
)
|
|
|
|
// example of middleware
|
|
func init() {
|
|
createPreMw = append(createPreMw,
|
|
createMw{Name: "sync-create-installation", Func: plugin.Create})
|
|
|
|
createSimxLogMw = append(createSimxLogMw,
|
|
createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})
|
|
|
|
updatePreMw = append(updatePreMw,
|
|
updateMw{Name: "sync-update-installation", Func: plugin.Update})
|
|
|
|
deletePreMw = append(deletePreMw,
|
|
deleteMw{Name: "sync-delete-installation", Func: plugin.Delete})
|
|
}
|