Lines Matching refs:ctx
31 Deliver(ctx context.Context, r *Request, delivered bool) bool
39 Cancel(ctx context.Context, conn *Conn, id ID, cancelled bool) bool
51 Request(ctx context.Context, conn *Conn, direction Direction, r *WireRequest) context.Context
53 Response(ctx context.Context, conn *Conn, direction Direction, r *WireResponse) context.Context
58 Done(ctx context.Context, err error)
62 Read(ctx context.Context, bytes int64) context.Context
64 Wrote(ctx context.Context, bytes int64) context.Context
68 Error(ctx context.Context, err error)
95 func (EmptyHandler) Deliver(ctx context.Context, r *Request, delivered bool) bool {
99 func (EmptyHandler) Cancel(ctx context.Context, conn *Conn, id ID, cancelled bool) bool {
103 func (EmptyHandler) Request(ctx context.Context, conn *Conn, direction Direction, r *WireRequest) context.Context {
104 return ctx
107 func (EmptyHandler) Response(ctx context.Context, conn *Conn, direction Direction, r *WireResponse) context.Context {
108 return ctx
111 func (EmptyHandler) Done(ctx context.Context, err error) {
114 func (EmptyHandler) Read(ctx context.Context, bytes int64) context.Context {
115 return ctx
118 func (EmptyHandler) Wrote(ctx context.Context, bytes int64) context.Context {
119 return ctx
122 func (EmptyHandler) Error(ctx context.Context, err error) {}
126 func (defaultHandler) Deliver(ctx context.Context, r *Request, delivered bool) bool {
131 r.Reply(ctx, nil, NewErrorf(CodeMethodNotFound, "method %q not found", r.Method))