1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Send Request and Publication types

This commit is contained in:
Asim
2015-12-02 20:56:50 +00:00
parent 4b18b779aa
commit a695e10d21
7 changed files with 103 additions and 21 deletions

View File

@ -4,9 +4,9 @@ import (
"golang.org/x/net/context"
)
type HandlerFunc func(ctx context.Context, req interface{}, rsp interface{}) error
type HandlerFunc func(ctx context.Context, req Request, rsp interface{}) error
type SubscriberFunc func(ctx context.Context, msg interface{}) error
type SubscriberFunc func(ctx context.Context, msg Publication) error
type HandlerWrapper func(HandlerFunc) HandlerFunc