-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from aceld/feature/aceld
add golang golint, workerflow
- Loading branch information
Showing
73 changed files
with
852 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package common | ||
|
||
// KisRow 一行数据 | ||
// KisRow represents a single row of data | ||
type KisRow interface{} | ||
|
||
// KisRowArr 一次业务的批量数据 | ||
// KisRowArr represents a batch of data for a single business operation | ||
type KisRowArr []KisRow | ||
|
||
/* | ||
KisDataMap 当前Flow承载的全部数据 | ||
key : 数据所在的Function ID | ||
value: 对应的KisRow | ||
*/ | ||
// KisDataMap contains all the data carried by the current Flow | ||
// key : Function ID where the data resides | ||
// value: Corresponding KisRow | ||
type KisDataMap map[string]KisRowArr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
package config | ||
|
||
// KisGlobalConfig represents the global configuration for KisFlow | ||
type KisGlobalConfig struct { | ||
//kistype Global为kisflow的全局配置 | ||
// KisType Global is the global configuration for kisflow | ||
KisType string `yaml:"kistype"` | ||
//是否启动prometheus监控 | ||
// EnableProm indicates whether to start Prometheus monitoring | ||
EnableProm bool `yaml:"prometheus_enable"` | ||
//是否需要kisflow单独启动端口监听 | ||
// PrometheusListen indicates whether kisflow needs to start a separate port for listening | ||
PrometheusListen bool `yaml:"prometheus_listen"` | ||
//prometheus取点监听地址 | ||
// PrometheusServe is the address for Prometheus scraping | ||
PrometheusServe string `yaml:"prometheus_serve"` | ||
} | ||
|
||
// GlobalConfig 默认全局配置,全部均为关闭 | ||
// GlobalConfig is the default global configuration, all are set to off | ||
var GlobalConfig = new(KisGlobalConfig) |
Oops, something went wrong.