auth/internal/client/usecase.go

19 lines
389 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 UseCase interface {
2021-12-29 20:53:31 +00:00
// Discovery returns client public information bu ClientID URL.
Discovery(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 ErrInvalidMe error = domain.NewError(
domain.ErrorCodeInvalidRequest,
"cannot fetch client endpoints on provided me",
"",
)