You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
394 B
Go
23 lines
394 B
Go
2 years ago
|
package server
|
||
|
|
||
|
import (
|
||
|
"git.phc.dm.unipi.it/phc/storage/database"
|
||
|
"git.phc.dm.unipi.it/phc/storage/serverinfo"
|
||
|
)
|
||
|
|
||
|
type Server struct {
|
||
|
adminSessions map[string]struct{}
|
||
|
|
||
|
Database database.Database
|
||
|
Monitor *serverinfo.Service
|
||
|
}
|
||
|
|
||
|
func New(db database.Database, m *serverinfo.Service) *Server {
|
||
|
return &Server{
|
||
|
adminSessions: map[string]struct{}{},
|
||
|
|
||
|
Database: db,
|
||
|
Monitor: m,
|
||
|
}
|
||
|
}
|