first commit

This commit is contained in:
snoop 2017-05-20 17:43:56 +09:00
commit 9a1ab3ee7f
3 changed files with 45 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

1
data/data.go Normal file
View File

@ -0,0 +1 @@
package data

25
data/rpc_impl.go Normal file
View File

@ -0,0 +1,25 @@
package data
import (
gt "loafle.com/overflow/central_api_gateway/data"
"golang.org/x/net/context"
)
type DataServerImpl struct {
}
func (d *DataServerImpl)SendMetric(context.Context, *gt.CollectedData) (*gt.Empty, error) {
et := &gt.Empty{}
return et, nil
}
func (d *DataServerImpl)SendMeta(context.Context, *gt.CollectedData) (*gt.Empty, error) {
et := &gt.Empty{}
return et, nil
}