auth/internal/client/repository.go

18 lines
318 B
Go
Raw Normal View History

2021-09-23 23:06:22 +00:00
package client
import (
"context"
"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
var ErrNotExist error = domain.NewError(
domain.ErrorCodeInvalidClient,
"client with the specified ID does not exist",
"",
)