micro/server/server_wrapper.go

14 lines
316 B
Go
Raw Normal View History

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