apisix icon indicating copy to clipboard operation
apisix copied to clipboard

apisix 外部插件开发 golang 的 go-runner 启了一个服务,如何暴露地址和端口供外部调用

Open qingconglaixueit opened this issue 1 year ago • 6 comments

Description

apisix 外部插件开发 golang 的 go-runner 启了一个服务,如何暴露地址和端口供外部调用

qingconglaixueit avatar Aug 12 '24 09:08 qingconglaixueit

Hi @qingconglaixueit

Could you describe your problem in more detail? It is best to combine with actual business scenarios.

zhoujiexiong avatar Aug 13 '24 05:08 zhoujiexiong

go-runner 自己开启grpc 服务,例如暴露端口 50051,那么如何在 apisix 配置文件中进行配置,外部请求到apisix的50051端口的时候能够转到 go-runner 的 50051 上

qingconglaixueit avatar Aug 13 '24 07:08 qingconglaixueit

go-runner 自己开启grpc 服务,例如暴露端口 50051,那么如何在 apisix 配置文件中进行配置,外部请求到apisix的50051端口的时候能够转到 go-runner 的 50051 上

What is the protocol of client request, HTTP or gRPC?

zhoujiexiong avatar Aug 13 '24 08:08 zhoujiexiong

apisix go-runner 如何获取请求进来接口的host? 我看 go-runner 源码,貌似没有

qingconglaixueit avatar Aug 20 '24 08:08 qingconglaixueit

apisix go-runner 如何获取请求进来接口的host? 我看 go-runner 源码,貌似没有

@qingconglaixueit This is other question that not related to current issue? If yes, pls. create new issue for the question. :D

zhoujiexiong avatar Aug 20 '24 09:08 zhoujiexiong

暴露的是 gRPC 的端口

qingconglaixueit avatar Aug 20 '24 09:08 qingconglaixueit

Due to the lack of detailed description, I will close this issue first. If there is still a problem, please add more details and open it again.

Baoyuantop avatar May 14 '25 06:05 Baoyuantop