mirror of
https://github.com/safing/portbase
synced 2025-09-09 22:05:49 +00:00
Add Withdraw function to database controllers
This commit is contained in:
parent
b50f922fb5
commit
95fbe85ba2
2 changed files with 25 additions and 6 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
// A Controller takes care of all the extra database logic.
|
||||
type Controller struct {
|
||||
database *Database
|
||||
storage storage.Interface
|
||||
shadowDelete bool
|
||||
|
||||
|
@ -25,8 +26,9 @@ type Controller struct {
|
|||
}
|
||||
|
||||
// newController creates a new controller for a storage.
|
||||
func newController(storageInt storage.Interface, shadowDelete bool) *Controller {
|
||||
func newController(database *Database, storageInt storage.Interface, shadowDelete bool) *Controller {
|
||||
return &Controller{
|
||||
database: database,
|
||||
storage: storageInt,
|
||||
shadowDelete: shadowDelete,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue