mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-12 01:10:44 +00:00
19 lines
463 B
Go
19 lines
463 B
Go
package restapi
|
|
|
|
import (
|
|
"github.com/danielmiessler/fabric/db"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
// SessionsHandler defines the handler for sessions-related operations
|
|
type SessionsHandler struct {
|
|
*StorageHandler[db.Session]
|
|
sessions *db.SessionsEntity
|
|
}
|
|
|
|
// NewSessionsHandler creates a new SessionsHandler
|
|
func NewSessionsHandler(e *echo.Echo, sessions *db.SessionsEntity) (ret *SessionsHandler) {
|
|
ret = &SessionsHandler{sessions: sessions}
|
|
return ret
|
|
}
|