types

package
v0.0.0-...-acc84cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: MIT Imports: 3 Imported by: 0

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 MailData

type MailData struct {
	To       []string
	From     string
	Subject  string
	Content  string
	Template string
}

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 NewJobDTO

type NewJobDTO struct {
	ID          int          `db:"id"`
	File        string       `db:"file"`
	Status      string       `db:"status"`
	Backup      int          `db:"backup"`
	CreatedAt   sql.NullTime `db:"created_at"`
	UpdatedAt   sql.NullTime `db:"updated_at"`
	DeletedAt   sql.NullTime `db:"deleted_at"`
	CompletedAt sql.NullTime `db:"completed_at"`
}

type NewOptionDTO

type NewOptionDTO struct {
	ID        int          `db:"id"`
	Name      string       `db:"name"`
	Value     string       `db:"value"`
	CreatedAt sql.NullTime `db:"created_at"`
	UpdatedAt sql.NullTime `db:"updated_at"`
	DeletedAt sql.NullTime `db:"deleted_at"`
}

type NewQueueDTO

type NewQueueDTO struct {
	ID      int
	Process string
}

type NewUserDTO

type NewUserDTO struct {
	ID        int          `db:"id"`
	Name      string       `db:"name"`
	Email     string       `db:"email"`
	Password  string       `db:"password"`
	CreatedAt sql.NullTime `db:"created_at"`
	UpdatedAt sql.NullTime `db:"updated_at"`
	DeletedAt sql.NullTime `db:"deleted_at"`
}

type NewUserForm

type NewUserForm struct {
	ID                   int
	Name                 string
	Email                string
	Password             string
	PasswordConfirmation string
}

type SmallJob

type SmallJob struct {
	Backup    int       `db:"backup"`
	Status    string    `db:"status"`
	CreatedAt time.Time `db:"ca"`
}

type TemplateData

type TemplateData struct {
	StringMap       map[string]string
	IntMap          map[string]int
	FloatMap        map[string]float32
	Data            map[string]interface{}
	CSRFToken       string
	Flash           string
	Warning         string
	Error           string
	Theme           string
	IsAuthenticated int
	UserId          int
	UserName        string
	Form            *forms.Form
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL