Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginDTO ¶
type LoginDTO struct {
Email string `validate:"required,email,min=6,max=32"`
Password string `validate:"required,min=6"`
}
LoginDTO defined the /login payload
type MsgResponse ¶
type MsgResponse struct {
Message string `json:"message"`
Data interface{} `json:"data"`
}
MsgResponse defined the message payload
type NewBackupDTO ¶
type NewBackupDTO struct {
ID int `db:"id"`
CreatedAt sql.NullTime `db:"created_at"`
UpdatedAt sql.NullTime `db:"updated_at"`
DeletedAt sql.NullTime `db:"deleted_at"`
Name string `db:"name"`
Enable bool `db:"enable"`
Frequency string `db:"frequency"`
Timezone string `db:"timezone"`
CustomFrequency string `db:"custom_frequency"`
Type string `db:"type"`
Bucket string `db:"bucket"`
Region string `db:"region"`
DbName string `db:"db_name"`
DbUser string `db:"db_user"`
DbPassword string `db:"db_password"`
DbHost string `db:"db_host"`
DbPort string `db:"db_port"`
PodLabel string `db:"pod_label"`
PodName string `db:"pod_name"`
DayOfWeek int `db:"day_of_week"`
DayOfMonth int `db:"day_of_month"`
Month int `db:"month"`
Time string `db:"time"`
Container string `db:"container"`
FilesPath string `db:"files_path"`
S3AccessKey string `db:"s3_access_key"`
S3SecretKey string `db:"s3_secret_key"`
StorageDirectory string `db:"storage_directory"`
Retention int `db:"retention"`
Emails string `db:"emails"`
URI sql.NullString `db:"uri"`
User int `db:"user"`
}
type NewOptionDTO ¶
type NewQueueDTO ¶
type NewUserDTO ¶
type NewUserForm ¶
type TemplateData ¶
type UserResponse ¶
type UserResponse struct {
ID int `json:"id" db:"id"`
CreatedAt sql.NullTime `db:"created_at"`
UpdatedAt sql.NullTime `db:"updated_at"`
DeletedAt sql.NullTime `db:"deleted_at"`
Name string `json:"name" db:"name"`
Email string `json:"email" db:"email"`
Password string `json:"-" db:"password"`
}
UserResponse
Click to show internal directories.
Click to hide internal directories.