auth/internal/profile/repository.go

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",
)