Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct {
SecretBase
Version int64
}
Secret is a secret database model with persistence version tag
func (*Secret) MarshalBinary ¶
MarshalBinary interface implementation
func (*Secret) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SecretBase ¶
type SecretBase struct {
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
RemainingViews int32 `json:"remainingViews"`
SecretText string `json:"secretText"`
}
SecretBase is a secret database model
type SecretResponse ¶
type SecretResponse struct {
XMLName xml.Name `json:"-" xml:"Secret"`
// The date and time of the creation
// Format: date-time
CreatedAt strfmt.DateTime `json:"createdAt,omitempty" xml:"createdAt,omitempty"`
// The secret cannot be reached after this time
// Format: date-time
ExpiresAt *strfmt.DateTime `json:"expiresAt,omitempty" xml:"expiresAt,omitempty"`
// Unique hash to identify the secrets
Hash string `json:"hash,omitempty" xml:"hash,omitempty"`
// How many times the secret can be viewed
RemainingViews int32 `json:"remainingViews,omitempty" xml:"remainingViews,omitempty"`
// The secret itself
SecretText string `json:"secretText,omitempty" xml:"secretText,omitempty"`
}
SecretResponse secret swagger:model Secret
Click to show internal directories.
Click to hide internal directories.