Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct { ID string PayloadID string Short string CreatedAt time.Time ModifiedAt time.Time }
Alias represent a translation from a Payload ID to a shorter alias Useful for short injection and easier to remember E.g: /p/5c28e6cf-72d6-49b3-b03e-2a40672c41ad would be shortened /p/a It also works for subdomains like a.domain.tld
type Execution ¶
Execution represents an execution of a payload. It is unique. A new trigger will generate a new Execution.
type Loot ¶
Loot represents an Loot of a payload. It is unique. A new trigger will generate a new Loot.
type SRIHashes ¶
type StorageError ¶
type StorageError uint
const ( Success StorageError = iota NoSuchItem AlreadyExist StorageFailure )
func (StorageError) Error ¶
func (s StorageError) Error() string
type User ¶
type User struct { // This should never be returned to other parts of the application Password string `json:"-"` // remove secret from HTTP Response // TOTPSecret represent the shared secret for TOTP TOTPSecret string `json:"-"` // remove secret from HTTP Response // ID should be a string: uuid. Non sequential ID string `json:"id"` // The username is the login of the user. Username string `json:"username"` // Is 2FA enabled on this account. // It will be used to determine if it requires another step during the login process TwoFactorEnabled bool `json:"two_factor_enabled"` CreatedAt time.Time `json:"created_at"` ModifiedAt time.Time `json:"modified_at"` }
User complement the SafeUser model with its password
Click to show internal directories.
Click to hide internal directories.