proxy

module
v0.0.0-...-a47d0c2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT

README

proxy

  1. grpc proxy
  2. http proxy

grpc proxy

  1. examples/grpc_hello

  2. examples/grpc_router

    1. go install github.com/lengzhao/proxy/examples/grpc_router@latest
    2. add conf.json in dir
    {
        "route":{
            "helloworld.Greeter":"127.0.0.1:50051"
        }
    }
    
    1. run router: grpc_router
  3. examples/http_proxy

    1. go install github.com/lengzhao/proxy/examples/http_proxy@latest
    2. run proxy: ./http_proxy
    3. set http proxy to 127.0.0.1:8081

Directories

Path Synopsis
examples
grpc_hello/client
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
grpc_hello/server
Package main implements a server for Greeter service.
Package main implements a server for Greeter service.

Jump to

Keyboard shortcuts

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