model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALL_PLATFORM = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID           int64      `json:"id"`
	AdminID      int64      `json:"admin_id"`
	MID          int64      `json:"mid"`
	LogDate      xtime.Time `json:"log_date"`
	ContactEmail string     `json:"contact_email"`
	SourceType   int        `json:"source_type"`
	Platform     int        `json:"platform"`
	State        int        `json:"state"`
	IsDeleted    int        `json:"is_deleted"`
	CTime        xtime.Time `json:"ctime"`
	MTime        xtime.Time `json:"mtime"`
}

Task is laser task

type TaskInfo

type TaskInfo struct {
	MID        int64
	LogDate    xtime.Time
	SourceType int
	Platform   int
	Empty      bool
}

TaskInfo is to set as value of memcache key(mid)

type TaskLog

type TaskLog struct {
	ID        int64      `json:"id"`
	TaskID    int64      `json:"task_id"`
	MID       int64      `json:"mid"`
	Build     string     `json:"build"`
	Platform  int        `json:"platform"`
	TaskState int        `json:"task_state"`
	Reason    string     `json:"reason"`
	CTime     xtime.Time `json:"ctime"`
	MTime     xtime.Time `json:"mtime"`
}

TaskLog record the uploaded task details

Jump to

Keyboard shortcuts

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