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.
 
 
 
 
 

14 lines
401 B

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