Skip to content

Commit

Permalink
add AddInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
MacBookAirM2 committed Mar 22, 2023
1 parent 1e28eb5 commit a700397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ziface/iclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ type IClient interface {
StartHeartBeatWithOption(time.Duration, *HeartBeatOption) //启动心跳检测(自定义回调)
GetLengthField() *LengthField
SetDecoder(IDecoder)
AddInterceptor(Interceptor)
}
1 change: 1 addition & 0 deletions ziface/iserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ type IServer interface {
StartHeartBeatWithOption(time.Duration, *HeartBeatOption) //启动心跳检测(自定义回调)
GetLengthField() *LengthField
SetDecoder(IDecoder)
AddInterceptor(Interceptor)
}

0 comments on commit a700397

Please sign in to comment.