summary refs log tree commit diff stats
path: root/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'types.go')
-rw-r--r--types.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/types.go b/types.go
index b5f27ce..018e26e 100644
--- a/types.go
+++ b/types.go
@@ -1,5 +1,7 @@
 package main
 
+import "sync"
+
 // content-type consts
 const txtutf8 = "text/plain; charset=utf-8"
 const htmlutf8 = "text/html; charset=utf-8"
@@ -23,6 +25,14 @@ type Instance struct {
 	Desc  string
 }
 
+// RemoteRegistries holds a list of remote registries to
+// periodically scrape for new users. The remote registries
+// must have been added via POST like a user.
+type RemoteRegistries struct {
+	Mu   sync.RWMutex
+	List []string
+}
+
 // ipCtxKey is the Context value key for user IP addresses
 type ipCtxKey int