central_api_gateway_event/event/rpc_impl.go
snoop 42afe8ef97 fixed
address
2017-05-29 19:43:27 +09:00

37 lines
529 B
Go

package event
import (
gt "git.loafle.net/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
}