2022-02-16 15:30:36 +00:00
|
|
|
package metadata
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-03-13 10:58:34 +00:00
|
|
|
"source.toby3d.me/toby3d/auth/internal/domain"
|
2022-02-16 15:30:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
|
|
|
Get(ctx context.Context, me *domain.Me) (*domain.Metadata, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
var ErrNotExist error = domain.NewError(
|
|
|
|
domain.ErrorCodeInvalidClient,
|
|
|
|
"not found 'indieauth-metadata' endpoint on provided me URL",
|
|
|
|
"https://indieauth.net/source/#discovery-0",
|
|
|
|
)
|