Plan stuff. Log stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
593 B

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
}