model

package
v0.0.0-...-f0dea4b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseinfoMgr

func BaseinfoMgr(db *gorm.DB) *_BaseinfoMgr

BaseinfoMgr open func

func CloseRelated

func CloseRelated()

CloseRelated 关闭全局预加载

func CphinfoMgr

func CphinfoMgr(db *gorm.DB) *_CphinfoMgr

CphinfoMgr open func

func CtrlinfoMgr

func CtrlinfoMgr(db *gorm.DB) *_CtrlinfoMgr

CtrlinfoMgr open func

func CtrllistMgr

func CtrllistMgr(db *gorm.DB) *_CtrllistMgr

CtrllistMgr open func

func FileinfoMgr

func FileinfoMgr(db *gorm.DB) *_FileinfoMgr

FileinfoMgr open func

func OpenRelated

func OpenRelated()

OpenRelated 打开全局预加载

func RedisinfoMgr

func RedisinfoMgr(db *gorm.DB) *_RedisinfoMgr

RedisinfoMgr open func

func SensorinfoMgr

func SensorinfoMgr(db *gorm.DB) *_SensorinfoMgr

SensorinfoMgr open func

func SensorlistMgr

func SensorlistMgr(db *gorm.DB) *_SensorlistMgr

SensorlistMgr open func

func ServerMgr

func ServerMgr(db *gorm.DB) *_ServerMgr

ServerMgr open func

func SphinfoMgr

func SphinfoMgr(db *gorm.DB) *_SphinfoMgr

SphinfoMgr open func

Types

type Baseinfo

type Baseinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Name       string    `gorm:"column:name;type:text"`
	IP         string    `gorm:"column:ip;type:text"`
	Port       string    `gorm:"column:port;type:text"`
	User       string    `gorm:"column:user;type:text"`
	Pwd        string    `gorm:"column:pwd;type:text"`
	Dname      string    `gorm:"column:dname;type:text"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
}

Baseinfo [...]

type Cphinfo

type Cphinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Hgp        string    `gorm:"column:hgp;type:text"`
	Htp        string    `gorm:"column:htp;type:text"`
	Ctrl       string    `gorm:"column:ctrl;type:text"`
	Cycle      int       `gorm:"column:cycle;type:int"`
	Sw         int       `gorm:"column:sw;type:int"`
	Protocolid int       `gorm:"column:protocolid;type:int"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
	Info       string    `gorm:"column:info;type:text"`
}

Cphinfo [...]

type Ctrlinfo

type Ctrlinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Sensorlist int       `gorm:"column:sensorlist;type:int"`
	Sensorname string    `gorm:"column:sensorname;type:text"`
	Info       string    `gorm:"column:info;type:text"`
	Createtme  time.Time `gorm:"column:createtme;type:timestamp"`
}

Ctrlinfo [...]

type Ctrllist

type Ctrllist struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Createtime time.Time `gorm:"column:createtime;type:timestamp"`
	Size       int       `gorm:"column:size;type:int"`
	Name       string    `gorm:"column:name;type:text"`
}

Ctrllist [...]

type Fileinfo

type Fileinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Name       string    `gorm:"column:name;type:text"`
	Path       string    `gorm:"column:path;type:text"`
	Fname      string    `gorm:"column:fname;type:text"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
}

Fileinfo [...]

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option overrides behavior of Connect.

type Redisinfo

type Redisinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Name       string    `gorm:"column:name;type:text"`
	IP         string    `gorm:"column:ip;type:text"`
	Port       string    `gorm:"column:port;type:text"`
	Auth       string    `gorm:"column:auth;type:text"`
	Queuename  string    `gorm:"column:queuename;type:text"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
}

Redisinfo [...]

type Sensorinfo

type Sensorinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Sensorlist int       `gorm:"column:sensorlist;type:int"`
	Sensorname string    `gorm:"column:sensorname;type:text"`
	Savename   string    `gorm:"column:savename;type:text"`
	Transform  string    `gorm:"column:transform;type:text"`
	Unit       string    `gorm:"column:unit;type:text"`
	Maxv       string    `gorm:"column:maxv;type:text"`
	Info       string    `gorm:"column:info;type:text"`
	Createtme  time.Time `gorm:"column:createtme;type:datetime"`
}

Sensorinfo [...]

type Sensorlist

type Sensorlist struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
	Size       int       `gorm:"column:size;type:int"`
	Name       string    `gorm:"column:name;type:text"`
	Tname      string    `gorm:"column:tname;type:text"`
}

Sensorlist [...]

type Server

type Server struct {
	Port int    `gorm:"column:port;type:int"`
	Info string `gorm:"column:info;type:text"`
}

Server [...]

type Sphinfo

type Sphinfo struct {
	ID         uint      `gorm:"primary_key;column:id;type:int unsigned;not null"`
	Hgp        string    `gorm:"column:hgp;type:text"`
	Htp        string    `gorm:"column:htp;type:text"`
	Ctrl       string    `gorm:"column:ctrl;type:text"`
	Cycle      int       `gorm:"column:cycle;type:int"`
	Sw         int       `gorm:"column:sw;type:int"`
	Protocolid int       `gorm:"column:protocolid;type:int"`
	Databaseid string    `gorm:"column:databaseid;type:text"`
	Fileid     int       `gorm:"column:fileid;type:int"`
	Redisid    int       `gorm:"column:redisid;type:int"`
	Createtime time.Time `gorm:"column:createtime;type:datetime"`
	Info       string    `gorm:"column:info;type:text"`
}

Sphinfo [...]

Jump to

Keyboard shortcuts

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