mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-04-27 19:05:23 +00:00
20 lines
350 B
Go
20 lines
350 B
Go
package payload
|
|
|
|
type Data struct {
|
|
Passphrase string `json:"passphrase"`
|
|
Error string `json:"error"`
|
|
GeneratedBy string `json:"generated_by"`
|
|
}
|
|
|
|
func (d Data) HasError() bool {
|
|
return d.Error != ""
|
|
}
|
|
|
|
func (d Data) HasPassphrase() bool {
|
|
return d.Passphrase != ""
|
|
}
|
|
|
|
func (d Data) HasBeenGenerated() bool {
|
|
return d.GeneratedBy != ""
|
|
}
|