central_api_gateway_event/event/rpc_impl.go
snoop 444c83a371 added
test
2017-05-22 12:12:20 +09:00

37 lines
525 B
Go

package event
import (
gt "loafle.com/overflow/central_api_gateway/event"
"golang.org/x/net/context"
"log"
)
type TaskResultServerImpl struct {
}
func (d *TaskResultServerImpl)Event(c context.Context,te *gt.TaskResultEvent) (*gt.Empty, error) {
et := &gt.Empty{}
log.Println(te.Data["Description"])
return et, nil
}
type EventServerImpl struct {
}
func (d *EventServerImpl)Event(c context.Context,ae *gt.AgentEvent) (*gt.Empty, error) {
et := &gt.Empty{}
log.Println(ae.Description)
return et, nil
}