mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
24 lines
608 B
Go
24 lines
608 B
Go
package app
|
|
|
|
import (
|
|
"github.com/phishingclub/phishingclub/api"
|
|
"github.com/phishingclub/phishingclub/cli"
|
|
"github.com/phishingclub/phishingclub/password"
|
|
)
|
|
|
|
// Utilities is a collection of utils
|
|
type Utilities struct {
|
|
CLIOutputter cli.Outputter
|
|
PasswordHasher *password.Argon2Hasher
|
|
JSONResponseHandler api.JSONResponseHandler
|
|
}
|
|
|
|
// NewUtils creates a collection of utils
|
|
func NewUtils() *Utilities {
|
|
return &Utilities{
|
|
CLIOutputter: cli.NewCLIOutputter(),
|
|
PasswordHasher: password.NewHasherWithDefaultValues(),
|
|
JSONResponseHandler: api.NewJSONResponseHandler(),
|
|
}
|
|
}
|