data

package
v0.0.0-...-b5b6fb0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Id      int64
	Name    string
	CallCmd string
}

type SQLiteConn

type SQLiteConn struct {
	DB *gorm.DB
}
var GlobalConn SQLiteConn

func (SQLiteConn) Exec

func (conn SQLiteConn) Exec(sql string, args ...interface{}) *gorm.DB

func (SQLiteConn) Query

func (conn SQLiteConn) Query(sql string) *gorm.DB

type Task

type Task struct {
	Id            int64
	RunnerHost    string
	RequirementId int64
	Requirement   Attribute `gorm:"foreignkey:RequirementId"`
	Cmd           string
}

type Worker

type Worker struct {
	Id       int64
	Host     string
	IsActive bool
}

type WorkerAttribute

type WorkerAttribute struct {
	Id              int64
	WorkerId        int64
	Worker          Worker `gorm:"foreignkey:WorkerId"`
	FunctionalityId int64
	Functionality   Attribute `gorm:"foreignkey:FunctionalityId"`
	IsActive        bool
}

Jump to

Keyboard shortcuts

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