protoc-gen-grpc-gateway-gosdk

module
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT

README

protoc-gen-grpc-gateway-gosdk

GitHub release Build Status Build Status Go Report Card codecov

According to the function of grpc gateway supported by grpc-gateway plugin

to generate go http sdk similar to k8s.

$ tree modsdk
modsdk
├── clientset.go
├── fake
│   └── fake_clientset.go
├── go.mod
├── go.sum
├── pb
│   └── userpb
│       └── user.pb.go
├── rest
│   ├── client.go
│   ├── option.go
│   └── request.go
└── typed
    ├── direct_client.go
    ├── fake
    │   └── fake_direct_client.go
    └── userv1
        ├── fake
        │   ├── fake_user.go
        │   ├── fake_user_expansion.go
        │   └── fake_userv1_client.go
        ├── user.go
        ├── user_expansion.go
        └── userv1_client.go

8 directories, 16 files

install

make sure you have already installed task and goreleaser tools first.

git clone https://github.com/jaronnie/protoc-gen-grpc-gateway-gosdk.git
cd protoc-gen-grpc-gateway-gosdk
task install

examples

grpc-restful

make sure you have already installed protoc and protoc-gen-go.

2023-04-22_01-10-03

Directories

Path Synopsis
cmd
env
gen
gen/codegenerator
Package codegenerator contains reusable functions used by the code generators.
Package codegenerator contains reusable functions used by the code generators.
tpl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL