2021-09-23 23:06:22 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-03-13 10:58:34 +00:00
|
|
|
"source.toby3d.me/toby3d/auth/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
|
|
|
|
2022-02-01 17:27:48 +00:00
|
|
|
var ErrNotExist error = domain.NewError(
|
|
|
|
domain.ErrorCodeInvalidClient,
|
|
|
|
"client with the specified ID does not exist",
|
|
|
|
"",
|
|
|
|
)
|