model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronConf

type CronConf struct {
	MqttUrl      string    `json:"mqtt_url"`       // MQTT URL
	MqttPort     int       `json:"mqtt_port"`      // MQTT 端口号
	MqttClientId string    `json:"mqtt_client_id"` // MQTT ClientId
	LogTopicName string    `json:"log_topic_name"` // 日志 主题名称
	SqlServer    SqlServer `json:"sql_server"`     // sqlserver
}

配置文件路径

type CronResStruct

type CronResStruct struct {
	Code int    // 状态码
	Msg  string // 消息
}

返回结构体

type CronStruct

type CronStruct struct {
	ID        int    `json:"id"`         // id
	Name      string `json:"name"`       // 定时任务名称
	ExprStr   string `json:"expr_str"`   // 表达式
	Status    int    `json:"status"`     // 状态 1 启用 0 停用
	ScriptTyp int    `json:"script_typ"` // 脚本类型  0 数据库脚本 1 shell 脚本 2 其他
	Script    string `json:"script"`     // 脚本
	Marks     string `json:"marks"`      // 备注
}

定时任务基本结构体

type InValue

type InValue struct {
	Action string      `json:"action"` // 动作  INIT 初始化 START 启动功能 ADD 添加定时任务 DELETE 删除定时任务 CLOSE 关闭功能
	Data   interface{} `json:"data"`   // 数据
}

type OutValue

type OutValue struct {
	Topic string `json:"topic"` // 主题名称
}

type SqlServer

type SqlServer struct {
	Host   string `json:"host"`    // 数据库地址
	Port   int    `json:"port"`    // 端口号
	User   string `json:"user"`    // 用户名
	Pwd    string `json:"pwd"`     // 密码
	DBName string `json:"db_name"` // 数据库名称
}

sqlserver 数据库

Jump to

Keyboard shortcuts

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