foo test service

This commit is contained in:
2020-06-30 17:18:54 +08:00
parent 769d7ce330
commit 4a81768f2b
13 changed files with 872 additions and 4 deletions

View File

@ -0,0 +1,20 @@
package subscriber
import (
"context"
"github.com/micro/go-micro/util/log"
foo "foo/proto/foo"
)
type Foo struct{}
func (e *Foo) Handle(ctx context.Context, msg *foo.Message) error {
log.Log("Handler Received message: ", msg.Say)
return nil
}
func Handler(ctx context.Context, msg *foo.Message) error {
log.Log("Function Received message: ", msg.Say)
return nil
}