auth/internal/client/repository.go

15 lines
282 B
Go
Raw Normal View History

2021-09-23 23:06:22 +00:00
package client
import (
"context"
2021-12-29 20:53:31 +00:00
"errors"
2021-09-23 23:06:22 +00:00
"source.toby3d.me/website/indieauth/internal/domain"
2021-09-23 23:06:22 +00:00
)
type Repository interface {
2021-12-29 20:53:31 +00:00
Get(ctx context.Context, id *domain.ClientID) (*domain.Client, error)
2021-09-23 23:06:22 +00:00
}
2021-12-29 20:53:31 +00:00
var ErrNotExist = errors.New("client with the specified ID does not exist")