1 Star 0 Fork 6

yoyofxteam / gateway-golang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

API 网关

Go SDK > 1.11

获取代码并运行(go mod 管理项目)

git clone https://github.com/hzwy23/gateway.git
cd gateway
go mod tidy
go run main.go

配置介绍

server:
    port: 8790
    contextPath: /
    timeout: 10
    host:
registerCenter:
    refreshFrequency: 30
    eureka:
        serviceUrls: [ http://localhost:8761 ]
router:
    gateway:
        ignoredPatterns: [ /gateway, /js, /css ]
        sensitiveHeaders: [Cookie]
        routers:
            user:
                path: /map/**
                serviceId: map
                stripPrefix: true
                timeout: 30
            ai:
                path: /gitchat/**
                url: https://gitbook.cn
                stripPrefix: false
                timeout: 5

测试地址:

 http://localhost:8790/gitchat/columns/category/5d8b7c3786194a1921979123?page=1

空文件

简介

Go 语言实现 API 网关基础功能 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/yoyofxteam/gateway-golang.git
git@gitee.com:yoyofxteam/gateway-golang.git
yoyofxteam
gateway-golang
gateway-golang
master

搜索帮助