auth/internal/profile/repository.go
Maxim Lebedev 3b0ebb3690
Some checks failed
continuous-integration/drone Build is failing
🚚 Renamed module due project migration
2022-03-13 15:58:34 +05:00

18 lines
331 B
Go

package profile
import (
"context"
"source.toby3d.me/toby3d/auth/internal/domain"
)
type Repository interface {
Get(ctx context.Context, me *domain.Me) (*domain.Profile, error)
}
var ErrNotExist error = domain.NewError(
domain.ErrorCodeServerError,
"no profile data for the provided Me",
"https://indieweb.org/h-card",
)