-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .github/workflows/sync.yml
- Loading branch information
Showing
18 changed files
with
95 additions
and
28 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
File renamed without changes.
File renamed without changes.
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
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
9 changes: 0 additions & 9 deletions
9
...cketmq-test/src/main/java/io/github/guoshiqiufeng/lokitest/controller/TestController.java
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
39 changes: 39 additions & 0 deletions
39
...-test/src/main/java/io/github/guoshiqiufeng/lokitest/interceptor/ListenerInterceptor.java
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.github.guoshiqiufeng.lokitest.interceptor; | ||
|
||
import io.github.guoshiqiufeng.loki.support.core.pipeline.PipelineContext; | ||
import io.github.guoshiqiufeng.loki.support.core.pipeline.PipelineProcess; | ||
import io.github.guoshiqiufeng.loki.support.core.pipeline.model.ConsumerRecordModel; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* @author yanghq | ||
* @version 1.0 | ||
* @since 2024/1/31 14:38 | ||
*/ | ||
@Slf4j | ||
@Component | ||
public class ListenerInterceptor implements PipelineProcess<ConsumerRecordModel> { | ||
|
||
/** | ||
* 是否支持 | ||
* | ||
* @param context 内容 | ||
* @return 是否支持 true 支持 false 不支持 | ||
*/ | ||
@Override | ||
public boolean support(PipelineContext<ConsumerRecordModel> context) { | ||
return "loki".equals(context.getModel().getTopic()); | ||
} | ||
|
||
/** | ||
* 处理 | ||
* | ||
* @param context 内容 | ||
*/ | ||
@Override | ||
public void process(PipelineContext<ConsumerRecordModel> context) { | ||
log.debug("ListenerInterceptor context:{}", context); | ||
// context.setProcessModel(null); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...mple-test/src/main/java/io/github/guoshiqiufeng/lokitest/interceptor/SendInterceptor.java
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.github.guoshiqiufeng.lokitest.interceptor; | ||
|
||
import io.github.guoshiqiufeng.loki.support.core.pipeline.PipelineContext; | ||
import io.github.guoshiqiufeng.loki.support.core.pipeline.PipelineProcess; | ||
import io.github.guoshiqiufeng.loki.support.core.pipeline.model.ProducerRecordModel; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* @author yanghq | ||
* @version 1.0 | ||
* @since 2024/1/31 14:38 | ||
*/ | ||
@Slf4j | ||
@Component | ||
public class SendInterceptor implements PipelineProcess<ProducerRecordModel> { | ||
|
||
/** | ||
* 是否支持 | ||
* | ||
* @param context 内容 | ||
* @return 是否支持 true 支持 false 不支持 | ||
*/ | ||
@Override | ||
public boolean support(PipelineContext<ProducerRecordModel> context) { | ||
return "loki".equals(context.getModel().getTopic()); | ||
} | ||
|
||
/** | ||
* 处理 | ||
* | ||
* @param context 内容 | ||
*/ | ||
@Override | ||
public void process(PipelineContext<ProducerRecordModel> context) { | ||
log.debug("SendInterceptor context:{}", context); | ||
// context.setProcessModel(null); | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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