micro/server/server_wrapper.go
2015-12-02 20:56:50 +00:00

14 lines
316 B
Go

package server
import (
"golang.org/x/net/context"
)
type HandlerFunc func(ctx context.Context, req Request, rsp interface{}) error
type SubscriberFunc func(ctx context.Context, msg Publication) error
type HandlerWrapper func(HandlerFunc) HandlerFunc
type SubscriberWrapper func(SubscriberFunc) SubscriberFunc