Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is a sample project for protoactor-go (go actor framework).

License

NotificationsYou must be signed in to change notification settings

polarbit/protoactor-go-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in Gitpod

How To Run

go run . worker -c 6331 -s 8080 -m 127.0.0.1:6331 -m 127.0.0.1:6332 -m 127.0.0.1:6333
go run . worker -c 6332 -s 8081 -m 127.0.0.1:6331 -m 127.0.0.1:6332 -m 127.0.0.1:6333
go run . worker -c 6333 -s 8082 -m 127.0.0.1:6331 -m 127.0.0.1:6332 -m 127.0.0.1:6333
go run . client

Notes
  • At the moment,client only connects to "6331" worker host.
  • If that host goes down, client starts to fail.
  • In order to fix that, we need to provide all hosts to client cluster config. (From command arguments)
Tools To Install
$ brew install protobuf$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1go install github.com/gogo/protobuf/protoc-gen-gofastgo install  github.com/gogo/protobuf/protoc-gen-gogoslickgo install github.com/AsynkronIT/protoactor-go/protobuf/protoc-gen-gograinv2@dev

Also see .gitpod and .gitpod.Dockerfile

Generate go types and services

protoc --gogoslick_out=. ./messages/protos.protoprotoc --gograinv2_out=. ./messages/protos.proto

Below is not working yet:protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative protos.proto

Readings
Tool Links

https://github.com/protocolbuffers/protobufhttps://github.com/protocolbuffers/protobuf-gohttps://grpc.io/docs/languages/go/quickstart/https://github.com/gogo/protobuf

About

This is a sample project for protoactor-go (go actor framework).

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp