Skip to content

Commit

Permalink
fix broken links (#600)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored Jul 2, 2024
1 parent f446d34 commit efa91d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion site/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ publish:
.PHONY: lint-website
lint-website: $(LOCALBIN)
test -x $(LOCALBIN)/htmltest || GOBIN=$(LOCALBIN) go install github.com/wjdp/htmltest@v0.17.0
$(LOCALBIN)/htmltest --conf ./.htmltest.yml ./public | grep 'target does not exist' && exit 1 || true
$(LOCALBIN)/htmltest --conf ./.htmltest.yml ./public | grep -E '(target does not exist|Non-OK status: 404)' \
&& exit 1 || true
4 changes: 2 additions & 2 deletions site/content/en/docs/developer-guide/plugin_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You can specify the plugin's type in its `Order` method.
If a plugin doesn't claim its order, it will be put into `OrderPositionUnspecified` group, with the operation `OrderOperationNop`.

If you want to configure a plugin in different positions, you can define the plugin as the base class,
and register its derived classes. Please check [this](https://github.com/mosn/htnn/blob/main/pkg/plugins/plugins_test.go) for the example.
and register its derived classes. Please check [this](https://github.com/mosn/htnn/blob/main/api/pkg/plugins/plugins_test.go) for the example.

## Filter manager

Expand Down Expand Up @@ -148,4 +148,4 @@ A consumer plugin needs to meet the following conditions:
* Implements the [ConsumerPlugin](https://pkg.go.dev/mosn.io/htnn/pkg/plugins#ConsumerPlugin) interface.
* Defines the `DecodeHeaders` method, and in this method, it calls `LookupConsumer` and `SetConsumer` to complete the setting of the consumer.

You can take the [keyAuth](https://github.com/mosn/htnn/blob/main/plugins/key_auth/filter.go) plugin as an example to write your own consumer plugin.
You can take the [keyAuth](https://github.com/mosn/htnn/blob/main/plugins/plugins/key_auth/filter.go) plugin as an example to write your own consumer plugin.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Go 插件结束。
如果插件没有声明其顺序,它将被放入 `OrderPositionUnspecified` 组,操作为 `OrderOperationNop`

如果您想在不同位置配置插件,您可以将插件定义为基类,
并注册其派生类。请检查[此示例](https://github.com/mosn/htnn/blob/main/pkg/plugins/plugins_test.go)
并注册其派生类。请检查[此示例](https://github.com/mosn/htnn/blob/main/api/pkg/plugins/plugins_test.go)

## Filter manager

Expand Down Expand Up @@ -143,4 +143,4 @@ filter manager 实现了以下特性:
* 实现 [ConsumerPlugin](https://pkg.go.dev/mosn.io/htnn/pkg/plugins#ConsumerPlugin) 接口。
* 定义 `DecodeHeaders` 方法,且在该方法里调用 `LookupConsumer``SetConsumer` 完成消费者的设置。

您可以以 [keyAuth](https://github.com/mosn/htnn/blob/main/plugins/key_auth/filter.go) 插件为例,编写自己的消费者插件。
您可以以 [keyAuth](https://github.com/mosn/htnn/blob/main/plugins/plugins/key_auth/filter.go) 插件为例,编写自己的消费者插件。

0 comments on commit efa91d0

Please sign in to comment.