42 lines
624 B
Go
42 lines
624 B
Go
package event
|
|
|
|
|
|
import (
|
|
gt "loafle.com/overflow/central_api_gateway/event"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
|
|
type DiscoveryServerImpl struct {
|
|
|
|
}
|
|
|
|
func (d *DiscoveryServerImpl)Event(c context.Context,de *gt.DiscoveryEvent) (*gt.Empty, error) {
|
|
|
|
et := >.Empty{}
|
|
|
|
return et, nil
|
|
}
|
|
|
|
type TaskResultServerImpl struct {
|
|
|
|
}
|
|
|
|
func (d *TaskResultServerImpl)Event(c context.Context,te *gt.TaskResultEvent) (*gt.Empty, error) {
|
|
et := >.Empty{}
|
|
|
|
return et, nil
|
|
}
|
|
|
|
|
|
|
|
type EventServerImpl struct {
|
|
|
|
}
|
|
|
|
func (d *EventServerImpl)Event(c context.Context,ae *gt.AgentEvent) (*gt.Empty, error) {
|
|
et := >.Empty{}
|
|
|
|
return et, nil
|
|
}
|