mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-24 22:26:54 +02:00
14 lines
320 B
Go
14 lines
320 B
Go
package server
|
|
|
|
import (
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
type HandlerFunc func(ctx context.Context, req interface{}, rsp interface{}) error
|
|
|
|
type SubscriberFunc func(ctx context.Context, msg interface{}) error
|
|
|
|
type HandlerWrapper func(HandlerFunc) HandlerFunc
|
|
|
|
type SubscriberWrapper func(SubscriberFunc) SubscriberFunc
|