persist

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IArchive added in v1.0.1

type IArchive interface {
	// GetName 获取名称
	GetName() string
	// GetCode 获取编号
	GetCode() string
	// GetBuild 获取建筑附加信息
	GetBuild() IArchiveBuild
	// GetDeg 获取开度
	GetDeg() uint8
	// GetSupTemp 获取供温
	GetSupTemp() float32
	// GetRetTemp 获取回温
	GetRetTemp() float32
	// GetRoomTemp 获取室温
	GetRoomTemp() float32
	// GetLsl 获取瞬流
	GetLsl() float32
	// GetRgl 获取瞬热
	GetRgl() float32

	// SetRegulate 设置调控状态
	SetRegulate(regulate bool)
	// GetRegulate 获取调控状态
	GetRegulate() bool
	// SetWeight 设置权重
	SetWeight(weight float32)
	// GetWeight 获取权重
	GetWeight() float32
}

type IArchiveBuild added in v1.0.1

type IArchiveBuild interface {
	// GetArea 获取面积
	GetArea() float32
	// GetToward 获取朝向
	GetToward() string
}

type IGateway added in v1.0.2

type IGateway interface {
	// GetCode 获取编号
	GetCode() string
	// GetName 获取名称
	GetName() string
	// GetBuildCount 获取水平平衡调控数
	GetBuildCount() int
	// GetHouseCount 获取垂直平衡调控数
	GetHouseCount() int
}

type IModel added in v1.1.0

type IModel interface {
	TableName() string
}

type IWatchRegulate added in v1.0.2

type IWatchRegulate interface {
	// GetStatus 获取状态
	GetStatus() int
	// GetRemark 获取备注
	GetRemark() string
}

type IWatcher

type IWatcher interface {
	// GetArchiveFunc 获取档案函数
	GetArchiveFunc() func(*WatcherArchiveParams) []IArchive
	// SetArchiveFunc 设置档案函数
	SetArchiveFunc(func(*WatcherArchiveParams) []IArchive)
	// SetRegulateCallbackFunc 设置调控回调函数
	SetRegulateCallbackFunc(func(*WatcherRegulateParams) IWatchRegulate)
	// GetRegulateCallbackFunc 获取调控回调函数
	GetRegulateCallbackFunc() func(*WatcherRegulateParams) IWatchRegulate
	// SetParamsCallbackFunc 设置参数回调函数
	SetParamsCallbackFunc(func(params map[string]interface{}))
	// GetParamsCallbackFunc 获取参数回调函数
	GetParamsCallbackFunc() func(params map[string]interface{})
}

type Logger added in v1.0.2

type Logger interface {
	Info(args ...interface{})
	Infof(template string, args ...interface{})

	Error(args ...interface{})
	Errorf(template string, args ...interface{})
}

type WatcherArchiveParams added in v1.0.3

type WatcherArchiveParams struct {
	Code string `json:"code"` // 网关编号
	Kind int    `json:"kind"` //  1-垂直平衡、户阀信息,2-水平平衡、楼阀信息
}

WatcherArchiveParams 档案参数

type WatcherRegulateParams added in v1.0.3

type WatcherRegulateParams struct {
	Code        string `json:"code"`         // 网关编号
	ArchiveCode string `json:"archive_code"` // 设备编号
	Kind        int    `json:"kind"`         //  1-垂直平衡、户阀信息,2-水平平衡、楼阀信息
	Value       uint8  `json:"value"`        // 反馈开度
}

WatcherRegulateParams 调控参数

Jump to

Keyboard shortcuts

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