@@ -83,13 +83,13 @@ func (d Direction) String() string {
83
83
}
84
84
}
85
85
86
- // emptyHandler represents a empty handler which implements Handler interface.
87
- type emptyHandler struct {}
86
+ // EmptyHandler represents a empty handler which implements Handler interface.
87
+ type EmptyHandler struct {}
88
88
89
89
// compile time check whether the emptyHandler implements Handler interface.
90
- var _ Handler = (* emptyHandler )(nil )
90
+ var _ Handler = (* EmptyHandler )(nil )
91
91
92
- func (emptyHandler ) Deliver (ctx context.Context , r * Request , delivered bool ) bool {
92
+ func (EmptyHandler ) Deliver (ctx context.Context , r * Request , delivered bool ) bool {
93
93
if delivered {
94
94
return false
95
95
}
@@ -102,26 +102,26 @@ func (emptyHandler) Deliver(ctx context.Context, r *Request, delivered bool) boo
102
102
}
103
103
104
104
// Cancel implements Handler interface.
105
- func (emptyHandler ) Cancel (context.Context , * Conn , ID , bool ) bool { return false }
105
+ func (EmptyHandler ) Cancel (context.Context , * Conn , ID , bool ) bool { return false }
106
106
107
107
// Request implements Handler interface.
108
- func (emptyHandler ) Request (ctx context.Context , _ * Conn , _ Direction , _ * WireRequest ) context.Context {
108
+ func (EmptyHandler ) Request (ctx context.Context , _ * Conn , _ Direction , _ * WireRequest ) context.Context {
109
109
return ctx
110
110
}
111
111
112
112
// Response implements Handler interface.
113
- func (emptyHandler ) Response (ctx context.Context , _ * Conn , _ Direction , _ * WireResponse ) context.Context {
113
+ func (EmptyHandler ) Response (ctx context.Context , _ * Conn , _ Direction , _ * WireResponse ) context.Context {
114
114
return ctx
115
115
}
116
116
117
117
// Done implements Handler interface.
118
- func (emptyHandler ) Done (context.Context , error ) {}
118
+ func (EmptyHandler ) Done (context.Context , error ) {}
119
119
120
120
// Read implements Handler interface.
121
- func (emptyHandler ) Read (ctx context.Context , _ int64 ) context.Context { return ctx }
121
+ func (EmptyHandler ) Read (ctx context.Context , _ int64 ) context.Context { return ctx }
122
122
123
123
// Write implements Handler interface.
124
- func (emptyHandler ) Write (ctx context.Context , _ int64 ) context.Context { return ctx }
124
+ func (EmptyHandler ) Write (ctx context.Context , _ int64 ) context.Context { return ctx }
125
125
126
126
// Error implements Handler interface.
127
- func (emptyHandler ) Error (context.Context , error ) {}
127
+ func (EmptyHandler ) Error (context.Context , error ) {}
0 commit comments