Files
hetty/pkg/proj/repo.go

16 lines
342 B
Go
Raw Normal View History

2020-10-29 20:54:17 +01:00
package proj
import (
"context"
2022-01-21 11:45:54 +01:00
"github.com/oklog/ulid"
2020-10-29 20:54:17 +01:00
)
type Repository interface {
2022-01-21 11:45:54 +01:00
FindProjectByID(ctx context.Context, id ulid.ULID) (Project, error)
UpsertProject(ctx context.Context, project Project) error
DeleteProject(ctx context.Context, id ulid.ULID) error
Projects(ctx context.Context) ([]Project, error)
2020-10-29 20:54:17 +01:00
Close() error
}