Ai
1 Star 0 Fork 0

丁杨庄/dgoflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
operation.go 616 Bytes
一键复制 编辑 原始数据 按行查看 历史
package sdk
type Operation interface {
GetId() string
Encode() []byte
GetProperties() map[string][]string
// Execute executes an operation, executor can pass configuration
Execute([]byte, map[string]interface{}) ([]byte, error)
}
type BlankOperation struct {
}
func (ops *BlankOperation) GetId() string {
return "end"
}
func (ops *BlankOperation) Encode() []byte {
return []byte("")
}
func (ops *BlankOperation) GetProperties() map[string][]string {
return make(map[string][]string)
}
func (ops *BlankOperation) Execute(data []byte, option map[string]interface{}) ([]byte, error) {
return data, nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/dingyangzhuang/dgoflow.git
git@gitee.com:dingyangzhuang/dgoflow.git
dingyangzhuang
dgoflow
dgoflow
v0.0.5

搜索帮助