2015-12-02 03:47:52 +03:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type HandlerFunc func(ctx context.Context, req interface{}, rsp interface{}) error
|
|
|
|
|
2015-12-02 14:54:36 +03:00
|
|
|
type SubscriberFunc func(ctx context.Context, msg interface{}) error
|
|
|
|
|
|
|
|
type HandlerWrapper func(HandlerFunc) HandlerFunc
|
|
|
|
|
|
|
|
type SubscriberWrapper func(SubscriberFunc) SubscriberFunc
|