models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 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 Notification added in v0.3.0

type Notification struct {
	Model
	Type         NotificationType
	Endpoint     string
	Nonce        string
	ResponseCode int
	Response     string
	Data         string
}

Notification records notifications sent by lake

type NotificationType added in v0.3.0

type NotificationType string
const (
	NotificationTaskSuccess NotificationType = "TaskSuccess"
)

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