自定义内容迁移到define文件

This commit is contained in:
zhangdeman committed 2022-06-17 20:32:31 +08:00
1 parent ac98d07993
commit f16ce66013
2 files changed
+29 -21

No files matched your search

-21
View File
@@ -6,24 +6,3 @@
//
// Date : 2021-09-21 3:48 下午
package kafka
// ProducerData 生产数据
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 4:13 下午 2021/9/21
type ProducerData struct {
Data interface{} // 发送的数据
Key string // 分区key
}
// ProducerResult 数据发送后的结果
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 4:15 下午 2021/9/21
type ProducerResult struct {
Partition int32 // 数据落入的分区
Offset int64 // 数据对应的Offset
Err error // 数据发送是否成功
}
+29
View File
@@ -0,0 +1,29 @@
// Package kafka ...
//
// Description : kafka ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2022-06-17 20:31
package kafka
// ProducerData 生产数据
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 4:13 下午 2021/9/21
type ProducerData struct {
Data interface{} // 发送的数据
Key string // 分区key
}
// ProducerResult 数据发送后的结果
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 4:15 下午 2021/9/21
type ProducerResult struct {
Partition int32 // 数据落入的分区
Offset int64 // 数据对应的Offset
Err error // 数据发送是否成功
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.