Categorygithub.com/go-zen-chu/connect-go-sample
module
0.0.0-20240420074135-1f62d5510994
Repository: https://github.com/go-zen-chu/connect-go-sample.git
Documentation: pkg.go.dev

# README

connect-go-sample

Ref: Getting started | Connect

You can create both http/grpc server using connect-go.

install tools

make install-tools

try connect-go http server

$ go run ./cmd/server

$ curl \
    --header "Content-Type: application/json" \
    --data '{}' \
    -XPOST http://localhost:8080/apis.v1.HealthService/Health
{"status":"OK"}

$ curl \
    --header "Content-Type: application/json" \
    --data '{"name": "Jane"}' \
    http://localhost:8080/apis.v1.GreetService/Greet

{"greeting":"Hello, Jane"}

add api

touch ./apis/v1/your_newapi.proto

make all

# Packages

No description provided by the author
Code generated by MockGen.
No description provided by the author