gateway

command module
v0.0.0-...-48145d3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 9 Imported by: 0

README

gateway

微服务网关,为后面部署架构进行

组件

k8s operator gateway micro service rpcx

todo

rpcx-gateway

  1. https://github.com/rpcxio/rpcx-gateway/blob/master/examples/golang/example1/httpclient.go
  2. https://github.com/rpcxio/rpcx-examples/blob/master/101basic/server.go
  3. https://github.com/rpcxio/rpcx-gateway/blob/master/gin/server.go
  4. https://github.com/rpcxio/rpcx-examples

test

http -v --json POST localhost:9981/login username=admin password=admin

http -f GET localhost:9981/auth/refresh_token "Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTY1NzYxOTgsIm9yaWdfaWF0IjoxNTk2NTcyNTk4LCJ1c2VyQ2xhaW1zIjoiW10iLCJ1c2VyTmFtZSI6ImFkbWluIn0.lN6zzqCYVEpnF-RIsAvOYubdmtPmvEDnNwOqWNJpAIA" "Content-Type: application/json"

etcd

docker run -d --name etcd-server \
    --publish 2379:2379 \
    --publish 2380:2380 \
    --env ALLOW_NONE_AUTHENTICATION=yes \
    bitnami/etcd:latest

neo4j

docker run -d \
    --name neo4j \
    --publish=7474:7474 --publish=7687:7687 \
    neo4j

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
prometheus中间件
prometheus中间件

Jump to

Keyboard shortcuts

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