Skip to content

Commit a700397

Browse files
author
MacBookAirM2
committed
add AddInterceptor
1 parent 1e28eb5 commit a700397

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ziface/iclient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ type IClient interface {
3333
StartHeartBeatWithOption(time.Duration, *HeartBeatOption) //启动心跳检测(自定义回调)
3434
GetLengthField() *LengthField
3535
SetDecoder(IDecoder)
36+
AddInterceptor(Interceptor)
3637
}

ziface/iserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ type IServer interface {
3636
StartHeartBeatWithOption(time.Duration, *HeartBeatOption) //启动心跳检测(自定义回调)
3737
GetLengthField() *LengthField
3838
SetDecoder(IDecoder)
39+
AddInterceptor(Interceptor)
3940
}

0 commit comments

Comments
 (0)