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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user