e071084ebe
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
40 lines
628 B
Go
40 lines
628 B
Go
package template
|
|
|
|
var (
|
|
ProtoSRV = `syntax = "proto3";
|
|
|
|
package {{dehyphen .Alias}};
|
|
|
|
option go_package = "./proto;{{dehyphen .Alias}}";
|
|
|
|
service {{title .Alias}} {
|
|
rpc Call(Request) returns (Response) {}
|
|
rpc Stream(StreamingRequest) returns (stream StreamingResponse) {}
|
|
}
|
|
|
|
message Message {
|
|
string say = 1;
|
|
}
|
|
|
|
message Request {
|
|
// Name of the person to greet
|
|
string name = 1;
|
|
}
|
|
|
|
message Response {
|
|
// Greeting message
|
|
string msg = 1;
|
|
}
|
|
|
|
message StreamingRequest {
|
|
// Number of responses to stream back
|
|
int64 count = 1;
|
|
}
|
|
|
|
message StreamingResponse {
|
|
// Current sequence number in the stream
|
|
int64 count = 1;
|
|
}
|
|
`
|
|
)
|