2025-02-09 07:02:42 +02:00
|
|
|
package session
|
|
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
// ErrSessionNotFound is an error returned when we attempt to retrieve
|
|
|
|
|
// information about a session but it is not found.
|
|
|
|
|
ErrSessionNotFound = errors.New("session not found")
|
2025-02-27 08:05:03 +02:00
|
|
|
|
|
|
|
|
// ErrUnknownGroup is returned when an attempt is made to insert a
|
|
|
|
|
// session and link it to an existing group where the group is not
|
|
|
|
|
// known.
|
|
|
|
|
ErrUnknownGroup = errors.New("unknown group")
|
|
|
|
|
|
|
|
|
|
// ErrSessionsInGroupStillActive is returned when an attempt is made to
|
|
|
|
|
// insert a session and link it to a group that still has other active
|
|
|
|
|
// sessions.
|
|
|
|
|
ErrSessionsInGroupStillActive = errors.New(
|
|
|
|
|
"group has active sessions",
|
|
|
|
|
)
|
2025-02-09 07:02:42 +02:00
|
|
|
)
|