first impl
This commit is contained in:
commit
759bd8af27
19
.gitignore
vendored
Normal file
19
.gitignore
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Created by .ignore support plugin (hsz.mobi)
|
||||
### Go template
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
|
||||
.glide/
|
||||
|
||||
.idea/
|
||||
*.iml
|
8
event/event.go
Normal file
8
event/event.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package event
|
||||
|
||||
|
||||
|
||||
type EventCollector struct {
|
||||
|
||||
}
|
||||
|
41
event/rpc_impl.go
Normal file
41
event/rpc_impl.go
Normal file
|
@ -0,0 +1,41 @@
|
|||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user