first impl

This commit is contained in:
snoop 2017-05-20 17:40:58 +09:00
commit 759bd8af27
3 changed files with 68 additions and 0 deletions

19
.gitignore vendored Normal file
View 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
View File

@ -0,0 +1,8 @@
package event
type EventCollector struct {
}

41
event/rpc_impl.go Normal file
View 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 := &gt.Empty{}
return et, nil
}
type TaskResultServerImpl struct {
}
func (d *TaskResultServerImpl)Event(c context.Context,te *gt.TaskResultEvent) (*gt.Empty, error) {
et := &gt.Empty{}
return et, nil
}
type EventServerImpl struct {
}
func (d *EventServerImpl)Event(c context.Context,ae *gt.AgentEvent) (*gt.Empty, error) {
et := &gt.Empty{}
return et, nil
}