Documentation ¶
Index ¶
- Variables
- func GetUUID() string
- func PrettySize(b uint64) string
- type AgeNotification
- type ChangeEmailInput
- type ChangePasswordInput
- type CreateTokenInput
- type CreateUserInput
- type DeleteSuccess
- type DeleteTokenInput
- type FileNotification
- type Force
- type LocalFile
- type ModifyTokenInput
- type QueryError
- type SizeNotification
- type Success
- type TokenOutput
- type UserStatusOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var EMPTY_STATUS = &UserStatusOutput{ PaymentID: "WILL-BE-IN-YOUR-EMAIL", Email: "your.email@example.com", Tokens: []*TokenOutput{ &TokenOutput{ ID: 0, UUID: "TOKEN-UUID-A", WriteOnly: false, Name: "db-example-a", }, &TokenOutput{ ID: 0, UUID: "TOKEN-UUID-B", WriteOnly: false, Name: "content-example-b", }, }, }
Functions ¶
func PrettySize ¶
Types ¶
type AgeNotification ¶
type ChangeEmailInput ¶
type ChangeEmailInput struct {
NewEmail string `binding:"required" json:"new_email"`
}
type ChangePasswordInput ¶
type ChangePasswordInput struct {
NewPassword string `binding:"required" json:"new_password"`
}
type CreateTokenInput ¶
type CreateUserInput ¶
type DeleteSuccess ¶
type DeleteTokenInput ¶
type DeleteTokenInput struct {
UUID string `binding:"required" json:"token"`
}
type FileNotification ¶
type FileNotification struct { Age *AgeNotification Size *SizeNotification FullPath string LastVersionSize uint64 FileVersionID uint64 FileMetadataID uint64 CreatedAt time.Time }
type ModifyTokenInput ¶
type QueryError ¶
type QueryError struct {
Error string `json:"error"`
}
type SizeNotification ¶
type TokenOutput ¶
type UserStatusOutput ¶
type UserStatusOutput struct { EmailVerified *time.Time `json:"email_verified"` Paid bool `json:"paid"` StartedSubscription *time.Time `json:"started_subscription"` CancelledSubscription *time.Time `json:"cancelled_subscription"` PaymentID string `json:"payment_id"` SubscribeURL string `json:"subscribe_url"` CancelSubscriptionURL string `json:"cancel_subscription_url"` LastVerificationID string `json:"-"` UserID uint64 `json:"-"` Tokens []*TokenOutput `json:"tokens"` Email string `json:"email"` Quota uint64 `json:"quota"` QuotaUsed uint64 `json:"quota_used"` QuotaInode uint64 `json:"quota_inodes"` QuotaInodeUsed uint64 `json:"quota_inodes_used"` }
Click to show internal directories.
Click to hide internal directories.