Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithTokenRepository ¶
func WithTokenRepository(tr TokenRepository) func(*UseCases)
func WithValidator ¶
Types ¶
type Command ¶
type Command struct {
TokenValidate TokenValidateCommand
}
type TokenRepository ¶
type TokenValidateCommand ¶
type TokenValidateCommandImpl ¶
type TokenValidateCommandImpl struct {
// contains filtered or unexported fields
}
func NewTokenValidateCommand ¶
func NewTokenValidateCommand(v Validator, tr TokenRepository) *TokenValidateCommandImpl
NewTokenValidateCommand creates a new TokenValidateCommand
func (*TokenValidateCommandImpl) Execute ¶
func (c *TokenValidateCommandImpl) Execute(ctx context.Context, params TokenValidateParams) (uuid.UUID, error)
Execute executes the TokenValidateCommand with the given params
type TokenValidateParams ¶
type TokenValidateParams struct {
AccessToken string `validate:"required"`
}
TokenValidateParams is the params for the TokenValidateCommand AccessToken is the access token to validate (required)
type UseCases ¶
type UseCases struct {
Command
// contains filtered or unexported fields
}
func NewUseCases ¶
Click to show internal directories.
Click to hide internal directories.