models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *gorm.DB

Functions

This section is empty.

Types

type Model

type Model struct {
	ID        uint64 `gorm:"primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

type NoPKModel

type NoPKModel struct {
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Task

type Task struct {
	Model
	Plugin   string         `json:"plugin"`
	Options  datatypes.JSON `json:"options"`
	Status   string         `json:"status"`
	Message  string         `json:"message"`
	Progress float32        `json:"progress"`
}

Jump to

Keyboard shortcuts

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