Skip to content

Protobuf generator for Temporal workflows

License

Notifications You must be signed in to change notification settings

nlm/protoc-gen-temporal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-temporal

Using protobuf and gRPC services to generate Temporal workflows

how to use

Build the generator

$ make build
go build ./cmd/protoc-gen-temporal/

demo

Build proto

$ make proto
protoc -I demopb --temporal_out=demopb --temporal_opt=paths=source_relative --plugin protoc-gen-temporal=protoc-gen-temporal demo.proto

Build the demo app

$ make demo
go build -o demo ./cmd/demo

Start a temporal dev server

$ temporal server start-dev

Run the worker

$ ./demo -mode worker

Run the client

$ ./demo -mode client
result: Hello, Alice!