2022-01-29 19:36:05 +00:00
|
|
|
package profile
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-03-13 10:58:34 +00:00
|
|
|
"source.toby3d.me/toby3d/auth/internal/domain"
|
2022-01-29 19:36:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
2022-02-17 14:59:59 +00:00
|
|
|
Get(ctx context.Context, me *domain.Me) (*domain.Profile, error)
|
2022-01-29 19:36:05 +00:00
|
|
|
}
|
|
|
|
|
2022-02-17 14:59:59 +00:00
|
|
|
var ErrNotExist error = domain.NewError(
|
|
|
|
domain.ErrorCodeServerError,
|
|
|
|
"no profile data for the provided Me",
|
|
|
|
"https://indieweb.org/h-card",
|
|
|
|
)
|