From 09a0fe7da08248a600d9b3698a938f543b3187be Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Tue, 23 May 2017 15:00:44 +0900 Subject: [PATCH] overflow db proxy grpc proto --- .gitignore | 77 +++++++++++++++++++++++++++++++++++++++++++++++++ grpc/cmd | 1 + grpc/grpc.proto | 16 ++++++++++ 3 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 grpc/cmd create mode 100644 grpc/grpc.proto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..663fbc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,77 @@ +# Created by .ignore support plugin (hsz.mobi) +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +### Linux template +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* +### 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/ + +.gitignore +.idea/ diff --git a/grpc/cmd b/grpc/cmd new file mode 100644 index 0000000..22a562f --- /dev/null +++ b/grpc/cmd @@ -0,0 +1 @@ +protoc -I grpc/ grpc/grpc.proto --go_out=plugins=grpc:grpc diff --git a/grpc/grpc.proto b/grpc/grpc.proto new file mode 100644 index 0000000..9e23461 --- /dev/null +++ b/grpc/grpc.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +message DBInput { + string targetDao = 1; + string method = 2; + map param = 3; +} + +message DBOutput { + map result = 1; +} + +service DB { + rpc exec(DBInput) returns (DBOutput) {} +} +