grpc

package
v3.14.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 3

README

OWL Grpc Server


what is Grpc? Please refer grpc

安裝需要的package


cd grpc
cp -r sgolang.org $GOPATH<br>
go get google.golang.org/grpc

ps. 有grpc的issue說china或許抓不到

如何compile proto檔


  • 需要先安裝系統必須的package [以下是for ubuntu]
#機器上可能缺少一些compile protoc 必須的package, 需要先預先安裝
apt-get install unzip dh-autoreconf
git clone https://github.com/google/protobuf
cd protobuf
./autogen.sh
./configure --perfix=/opt/protobuf
make
make install
export PATH=/opt/protobuf/bin:$GOPATH/bin:$PATH
go get google.golang.org/grpc
git clone https://github.com/golang/protobuf
cd protobuf
  • compile
./gen.sh proto/owlquery/grafana.proto
  • 之後跟著query整個project run `go build 就可以產生可執行檔

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Types

This section is empty.

Directories

Path Synopsis
proto
owlquery
Package owlapi is a generated protocol buffer package.
Package owlapi is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL