internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkInfoColumns

type LinkInfoColumns struct {
	Id        string // 主键
	Name      string // 连接名称
	Mark      string // 连接标记
	CreatedAt string // 创建时间
	UpdatedAt string // 修改时间
}

LinkInfoColumns defines and stores column names for table link_info.

type LinkInfoDao

type LinkInfoDao struct {
	// contains filtered or unexported fields
}

LinkInfoDao is the manager for logic model data accessing and custom defined data operations functions management.

func NewLinkInfoDao

func NewLinkInfoDao() *LinkInfoDao

NewLinkInfoDao creates and returns a new DAO object for table data access.

func (*LinkInfoDao) Columns

func (dao *LinkInfoDao) Columns() LinkInfoColumns

Columns returns all column names of current dao.

func (*LinkInfoDao) Ctx

func (dao *LinkInfoDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*LinkInfoDao) DB

func (dao *LinkInfoDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*LinkInfoDao) Group

func (dao *LinkInfoDao) Group() string

Group returns the configuration group name of database of current dao.

func (*LinkInfoDao) Table

func (dao *LinkInfoDao) Table() string

Table returns the table name of current dao.

func (*LinkInfoDao) Transaction

func (dao *LinkInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type LinkNetColumns

type LinkNetColumns struct {
	Id         string // 主键
	Name       string // 连接名称
	Mark       string // 串口标记
	RemoteType string // 远程类型
	RemoteAddr string // 远程地址
	RemotePort string // 远程端口号
	Timeout    string // 超时时间
	CreatedAt  string // 创建时间
	UpdatedAt  string // 修改时间
}

LinkNetColumns defines and stores column names for table link_net.

type LinkNetDao

type LinkNetDao struct {
	// contains filtered or unexported fields
}

LinkNetDao is the manager for logic model data accessing and custom defined data operations functions management.

func NewLinkNetDao

func NewLinkNetDao() *LinkNetDao

NewLinkNetDao creates and returns a new DAO object for table data access.

func (*LinkNetDao) Columns

func (dao *LinkNetDao) Columns() LinkNetColumns

Columns returns all column names of current dao.

func (*LinkNetDao) Ctx

func (dao *LinkNetDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*LinkNetDao) DB

func (dao *LinkNetDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*LinkNetDao) Group

func (dao *LinkNetDao) Group() string

Group returns the configuration group name of database of current dao.

func (*LinkNetDao) Table

func (dao *LinkNetDao) Table() string

Table returns the table name of current dao.

func (*LinkNetDao) Transaction

func (dao *LinkNetDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

type LinkSerialColumns

type LinkSerialColumns struct {
	Id           string // 主键
	Name         string // 连接名称
	Mark         string // 串口标记
	SerialName   string // 串口号
	SerialBaund  string // 串口波特率
	SerialParity string // 串口校验位
	SerialData   string // 串口数据位
	SerialStop   string // 串口停止位
	CreatedAt    string // 创建时间
	UpdatedAt    string // 修改时间
}

LinkSerialColumns defines and stores column names for table link_serial.

type LinkSerialDao

type LinkSerialDao struct {
	// contains filtered or unexported fields
}

LinkSerialDao is the manager for logic model data accessing and custom defined data operations functions management.

func NewLinkSerialDao

func NewLinkSerialDao() *LinkSerialDao

NewLinkSerialDao creates and returns a new DAO object for table data access.

func (*LinkSerialDao) Columns

func (dao *LinkSerialDao) Columns() LinkSerialColumns

Columns returns all column names of current dao.

func (*LinkSerialDao) Ctx

func (dao *LinkSerialDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*LinkSerialDao) DB

func (dao *LinkSerialDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*LinkSerialDao) Group

func (dao *LinkSerialDao) Group() string

Group returns the configuration group name of database of current dao.

func (*LinkSerialDao) Table

func (dao *LinkSerialDao) Table() string

Table returns the table name of current dao.

func (*LinkSerialDao) Transaction

func (dao *LinkSerialDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error)

Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.

Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.

Jump to

Keyboard shortcuts

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