1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00
2020-12-26 15:21:29 +00:00

21 lines
411 B
Go

package subscriber
import (
"log"
"context"
example "github.com/micro/go-micro/examples/server/proto/example"
)
type Example struct{}
func (e *Example) Handle(ctx context.Context, msg *example.Message) error {
log.Print("Handler Received message: ", msg.Say)
return nil
}
func Handler(ctx context.Context, msg *example.Message) error {
log.Print("Function Received message: ", msg.Say)
return nil
}