summaryrefslogtreecommitdiff
path: root/internal/state/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/state/state.go')
-rw-r--r--internal/state/state.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/state/state.go b/internal/state/state.go
index 90683acd4..8aefa658a 100644
--- a/internal/state/state.go
+++ b/internal/state/state.go
@@ -19,6 +19,7 @@ package state
import (
"codeberg.org/gruf/go-mutexes"
+ "github.com/superseriousbusiness/gotosocial/internal/admin"
"github.com/superseriousbusiness/gotosocial/internal/cache"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/storage"
@@ -61,9 +62,14 @@ type State struct {
// Storage provides access to the storage driver.
Storage *storage.Driver
- // Workers provides access to this state's collection of worker pools.
+ // Workers provides access to this
+ // state's collection of worker pools.
Workers workers.Workers
+ // Struct to manage running admin
+ // actions (and locks thereupon).
+ AdminActions *admin.Actions
+
// prevent pass-by-value.
_ nocopy
}