structs

package
v0.0.0-...-e8c1540 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDatabase

type APIDatabase struct {
	DBID       int    `db:"db_id"`
	UserID     int    `db:"user_id"`
	TypeID     int    `db:"type_id"`
	ServerName string `db:"server_name"`
	CustomName string `db:"custom_name"`
	Host       string `db:"host"`
	Port       int    `db:"port"`
	IsActive   bool   `db:"is_active"`
	DbUser     string `db:"db_user"`
	DbPassword string `db:"db_password"`
	IsDelete   bool   `db:"is_delete"`
}

type APITask

type APITask struct {
	TaskID      int    `db:"task_id"`
	TaskName    string `db:"task_name"`
	IsActive    bool   `db:"is_active"`
	DBID        int    `db:"db_id"`
	Databases   string `db:"databases"`
	Verb        int    `db:"verb"`
	ThreadCount int    `db:"thread_count"`
	Gzip        bool   `db:"gzip"`
	Ipv6        bool   `db:"ipv6"`
	Months      string `db:"months"`
	DayWeek     string `db:"day_week"`
	Hours       string `db:"hours"`
	Minutes     string `db:"minutes"`
	DumpFolder  string `db:"dumpfolder"`
	IsDelete    bool   `db:"is_delete"`
}

type APITasks

type APITasks struct {
	TaskID     int    `db:"task_id"`
	TaskName   string `db:"task_name"`
	ServerName string `db:"server_name"`
}

type APITasksCount

type APITasksCount struct {
	Count    int `db:"count"`
	Active   int `db:"active"`
	Inactive int `db:"inactive"`
}

type APIUser

type APIUser struct {
	UserID    int    `db:"user_id"`
	Login     string `db:"login"`
	Password  string `db:"password"`
	APIToken  string `db:"api_token"`
	FirstName string `db:"first_name"`
	LastName  string `db:"last_name"`
	IsActive  bool   `db:"is_active"`
	IsAdmin   bool   `db:"is_admin"`
	IsDelete  bool   `db:"is_delete"`
}

type Action

type Action int
const (
	NewOperator Action = 0 + iota
	StartOperator
	SuccessOperator
	FailOperator
	NewDump
	StartDump
	SuccessDump
	FailDump
	NewRestore
	StartRestore
	SuccessRestore
	FailRestore
)

type StatMessage

type StatMessage struct {
	UserID          uint16    `db:"UserId" json:"uid"`
	DbID            uint16    `db:"DbID" json:"did"`
	TaskID          uint16    `db:"TaskId" json:"tid"`
	Service         string    `db:"TaskId" json:"srv"`
	NewOperator     uint32    `db:"NewOperator" json:"no"`
	SuccessOperator uint32    `db:"SuccessOperator" json:"so"`
	FailOperator    uint32    `db:"FailOperator" json:"fo"`
	NewDump         uint32    `db:"NewDump" json:"nd"`
	SuccessDump     uint32    `db:"SuccessDump" json:"sd"`
	FailDump        uint32    `db:"FailDump" json:"fd"`
	NewRestore      uint32    `db:"NewRestore" json:"nr"`
	SuccessRestore  uint32    `db:"SuccessRestore" json:"sr"`
	FailRestore     uint32    `db:"FailRestore" json:"fr"`
	Error           string    `db:"Error" json:"er"`
	CreateDate      time.Time `db:"CreateDate" json:"cd"`
}

type Task

type Task struct {
	DBSettingsType int    `json:"-" db:"type_id"`
	DBSettingsID   int    `json:"-" db:"db_settings_id"`
	IsActive       bool   `json:"-" db:"is_active"`
	TaskID         int    `json:"task_id" db:"task_id"`
	TaskName       string `json:"task_name" db:"task_name"`
	DBID           int    `json:"db_id" db:"db_id"`
	UserID         int    `json:"user_id" db:"user_id"`
	Databases      string `json:"-" db:"databases"`
	DBType         string `json:"db_type" db:"db_type"`
	Verb           int    `json:"verb" db:"verb"`
	ThreadCount    int    `json:"thread_count" db:"thread_count"`
	Gzip           bool   `json:"gzip" db:"gzip"`
	Ipv6           bool   `json:"ipv6" db:"ipv6"`
	Host           string `json:"host" db:"host"`
	Port           int    `json:"port" db:"port"`
	DBUser         string `json:"db_user" db:"db_user"`
	DBPassword     string `json:"db_password" db:"db_password"`
	DumpFolder     string `json:"dumpfolder" db:"dumpfolder"`
	Database       string `json:"database"`
	IsDelete       bool   `json:"-" db:"is_delete"`
}

Jump to

Keyboard shortcuts

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