Skip to content

Commit

Permalink
dubboContext更改为dubbo2Context
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzeyi committed Feb 14, 2023
1 parent 0f8ef85 commit ea476ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
9 changes: 0 additions & 9 deletions eocontext/dubbo-context/chain.go

This file was deleted.

9 changes: 9 additions & 0 deletions eocontext/dubbo2-context/chain.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dubbo2_context

import "github.com/eolinker/eosc/eocontext"

func Assert(ctx eocontext.EoContext) (IDubbo2Context, error) {
var dubboContext IDubbo2Context
err := ctx.Assert(&dubboContext)
return dubboContext, err
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dubbo_context
package dubbo2_context

import (
"github.com/eolinker/eosc/eocontext"
Expand Down Expand Up @@ -32,7 +32,7 @@ type IHeaderReader interface {
ResponseStatus() byte
}

type IDubboContext interface {
type IDubbo2Context interface {
eocontext.EoContext
HeaderReader() IRequestReader // 读取原始请求
Proxy() IProxy // 读写转发请求
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dubbo_context
package dubbo2_context

import (
"github.com/eolinker/eosc/eocontext"
Expand All @@ -10,7 +10,7 @@ var (
)

type DubboFilter interface {
DoDubboFilter(ctx IDubboContext, next eocontext.IChain) (err error)
DoDubboFilter(ctx IDubbo2Context, next eocontext.IChain) (err error)
}

func DoDubboFilter(httpFilter DubboFilter, ctx eocontext.EoContext, next eocontext.IChain) (err error) {
Expand Down

0 comments on commit ea476ca

Please sign in to comment.