package repositories import ( "context" "github.com/gisle/stufflog/models" ) // UserSessionRepository is a repository for database operations for userSessions. type UserSessionRepository interface { FindID(ctx context.Context, id string) (*models.UserSession, error) List(ctx context.Context) ([]*models.UserSession, error) ListUser(ctx context.Context, user models.User) ([]*models.UserSession, error) Save(ctx context.Context, session models.UserSession) error Remove(ctx context.Context, session models.UserSession) error RemoveUser(ctx context.Context, user models.User) error }