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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectParams

type CollectParams struct {
	SubEvent  string `form:"sub_event" json:"sub_event"`
	Event     string `form:"event" json:"event"`
	Product   string `form:"product" json:"product"`
	Source    string `form:"source" json:"source"`
	Code      int    `form:"code" json:"code"`
	ExtJSON   string `form:"ext_json"`
	Mid       int64
	IP        string
	Buvid     string
	UserAgent string
}

CollectParams .

type Group

type Group struct {
	ID        int64     `form:"id" json:"id"`
	Name      string    `form:"name" json:"name"`
	Receivers string    `form:"receivers" json:"receivers"`
	Interval  int       `form:"interval" json:"interval"`
	Ctime     time.Time `json:"ctime"`
	Mtime     time.Time `json:"mtime"`
}

Group .

type GroupListParams

type GroupListParams struct {
	Pn   int    `form:"pn" json:"pn"`
	Ps   int    `form:"ps" json:"ps"`
	Name string `form:"name" json:"name"`
}

GroupListParams .

type Groups

type Groups struct {
	Total    int      `json:"total"`
	Page     int      `json:"page"`
	PageSize int      `json:"pagesize"`
	Groups   []*Group `json:"groups"`
}

Groups .

type LogParams

type LogParams struct {
	Source string `form:"source"`
	Log    string `form:"log"`
	IsAPP  int    `form:"is_app"`
}

LogParams .

type Product

type Product struct {
	ID       int64     `form:"id" json:"id"`
	Name     string    `form:"name" json:"name"`
	GroupIDs string    `form:"gid" json:"-"`
	Groups   []*Group  `json:"groups"`
	State    int       `form:"state" json:"state"`
	Ctime    time.Time `json:"ctime"`
	Mtime    time.Time `json:"mtime"`
}

Product .

type Products

type Products struct {
	Total    int        `json:"total"`
	Page     int        `json:"page"`
	PageSize int        `json:"pagesize"`
	Products []*Product `json:"products"`
}

Products .

type Target

type Target struct {
	ID         int64     `form:"id" json:"id"`
	SubEvent   string    `form:"sub_event" json:"sub_event"`
	Event      string    `form:"event" json:"event"`
	Product    string    `form:"product" json:"product"`
	Source     string    `form:"source" json:"source"`
	GroupIDs   string    `form:"gid" json:"-"`
	Groups     []*Group  `json:"groups"`
	States     string    `form:"states" json:"-"`
	State      int       `form:"state" json:"state"`
	Threshold  int       `form:"threshold" json:"threshold"`
	Duration   int       `form:"duration" json:"duration"`
	DeleteTime time.Time `json:"deleted_time"`
	Ctime      time.Time `json:"ctime"`
	Mtime      time.Time `json:"mtime"`
}

Target .

type Targets

type Targets struct {
	Total    int       `json:"total"`
	Page     int       `json:"page"`
	PageSize int       `json:"pagesize"`
	Draw     int       `form:"draw" json:"draw"`
	Targets  []*Target `json:"targets"`
}

Targets .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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