Merge branch 'feature/ephemeral-expose'
This commit is contained in:
commit
a9a0372d25
7 files changed
+705
No files matched your search
@@ -219,6 +219,8 @@ type Server struct {
|
||||
verAt time.Time
|
||||
mtaSent map[string]time.Time // reminder throttle for repeat notifications
|
||||
|
||||
expose map[string]time.Time // deadline of each ephemeral mapping, by ID (see expose.go)
|
||||
|
||||
logs *logStore
|
||||
db *DB
|
||||
stop chan struct{}
|
||||
@@ -260,6 +262,7 @@ func New(dir string, opts Options) (*Server, error) {
|
||||
alerts: map[string]*alertState{},
|
||||
mtaSent: map[string]time.Time{},
|
||||
updRuns: map[string]*updRun{},
|
||||
expose: map[string]time.Time{},
|
||||
}
|
||||
s.st.Sessions = map[string]*Session{}
|
||||
s.st.Secrets = map[string]*Secret{}
|
||||
@@ -300,6 +303,7 @@ func New(dir string, opts Options) (*Server, error) {
|
||||
}
|
||||
s.loadAlerts()
|
||||
go s.housekeeping()
|
||||
go s.exposeLoop()
|
||||
go s.alertLoop()
|
||||
return s, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user