42afe8ef97
address
37 lines
529 B
Go
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 := >.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 := >.Empty{}
|
|
|
|
log.Println(ae.Description)
|
|
|
|
return et, nil
|
|
}
|