Generate typesafe typescript and go clients, examples (#194)

This commit is contained in:
Janos Dobronszki
2021-09-09 13:28:12 +01:00
committed by GitHub
parent 5626af3a45
commit 528b1e1c69
28 changed files with 1806 additions and 191 deletions

View File

@@ -10,7 +10,7 @@ import (
type Sentiment struct{}
func (e *Sentiment) Analyze(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
func (e *Sentiment) Analyze(ctx context.Context, req *pb.AnalyzeRequest, rsp *pb.AnalyzeResponse) error {
if len(req.Text) == 0 {
return errors.BadRequest("sentiment.analyze", "text is blank")
}