Gin Server Demo, with Features: Swagger UI, Prometheus, Shell scripts

Gin Server

Gin Server

Features

  1. Swagger UI
  2. Docker
  3. Prometheus
  4. Shell generator

Production

  1. Cypher Service And we can get the authorization key SECURITY_CA_KEY in Vault.
curl -X 'POST' \
  'http://localhost:8000/platform/cypher?Authorization=SECURITY_CA_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "storeId": "platform.test",
  "operation": "encrypt_batch",
  "items": [
    "test"
  ]
}'

Usage Locally

Go package

go mod init api_server/v1
export GOPROXY=https://goproxy.io
go mod tidy

To run the server, please execute the following from the root directory:

source bin/gen_go_server.sh
source bin/run_swagger_server.sh

and open your browser to here:

http://localhost:8000/swagger/index.html

Your OpenAPI definition lives here:

http://localhost:8000/openapi.yaml

Docker image Please add IP to PYCredit white list or enable test VPN

docker build -t nomad:test .
docker run -d --cap-add NET_ADMIN --device /dev/net/tun -p 8000:8000 nomad:test

curl --location --request GET \
'http://localhost:8000/cbec/id?user_id=123**&name=宋**&Authorization=test'
Owner
Similar Resources

A simple SHOUTcast server.

DudelDu DudelDu is a simple audio/video streaming server using the SHOUTcast protocol. Features Supports various streaming clients: VLC, ServeStream,

Nov 20, 2022

A feature flag solution, with only a YAML file in the backend (S3, GitHub, HTTP, local file ...), no server to install, just add a file in a central system and refer to it. 🎛️

A feature flag solution, with only a YAML file in the backend (S3, GitHub, HTTP, local file ...), no server to install, just add a file in a central system and refer to it. 🎛️

🎛️ go-feature-flag A feature flag solution, with YAML file in the backend (S3, GitHub, HTTP, local file ...). No server to install, just add a file i

Dec 29, 2022

An XMPP server written in Go (Golang).

jackal An XMPP server written in Go. About jackal is a free, open-source, high performance XMPP server which aims to be known for its stability, simpl

Dec 29, 2022

A proxy server than converts JSON request bodies to protocol buffers

A proxy server than converts JSON request bodies to protocol buffers

Welcome to Protoxy 👋 What is Protoxy? Protoxy allows you to test your REST APIs that use Protocol Buffer serialization through Postman and other API

Nov 1, 2022

High-performance PHP application server, load-balancer and process manager written in Golang

High-performance PHP application server, load-balancer and process manager written in Golang

[RR2-BETA] RoadRunner is an open-source (MIT licensed) high-performance PHP application server, load balancer, and process manager. It supports runnin

Jan 4, 2023

Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support - S3, Google Cloud Storage, Azure Blob

SFTPGo Fully featured and highly configurable SFTP server with optional FTP/S and WebDAV support, written in Go. Several storage backends are supporte

Jan 9, 2023

A RTP - WebRTC broadcast server for Project Lightspeed.

Project Lightspeed WebRTC A RTP - WebRTC server based on Pion written in Go. This server accepts RTP packets on port 65535 and broadcasts them via We

Sep 1, 2022

Heart 💜A high performance Lua web server with a simple, powerful API

Heart 💜A high performance Lua web server with a simple, powerful API

Heart 💜 A high performance Lua web server with a simple, powerful API. See the full documentation here. Overview Heart combines Go's fasthttp with Lu

Aug 31, 2022

The Galène videoconferencing server

The Galène videoconferencing server

Dec 28, 2022
✨ A lightweight HTTP server based on GO, will try to detect your OS and architecture and return as SHELL script. ✨
✨ A lightweight HTTP server based on GO, will try to detect your OS and architecture and return as SHELL script. ✨

✨ A lightweight HTTP server based on GO, will try to detect your OS and architecture and return as SHELL script. ✨

Dec 14, 2022
A GO gin implementation of Tutor2Tutee Server
 A GO gin implementation of Tutor2Tutee Server

T2T-Server Go Gin-gonic implementation

Nov 10, 2021
Opinionated boilerplate Golang HTTP server with CORS, OPA, Prometheus, rate-limiter for API and static website.
Opinionated boilerplate Golang HTTP server with CORS, OPA, Prometheus, rate-limiter for API and static website.

Teal.Finance/Server Opinionated boilerplate HTTP server with CORS, OPA, Prometheus, rate-limiter… for API and static website. Origin This library was

Nov 3, 2022
Turn Nginx logs into Prometheus metrics

Nginx log parser and Prometheus exporter This service parses incoming syslog messages from Nginx sent over UDP and converts them into Prometheus metri

Dec 13, 2022
a simple http server as replacement of python -m http.server

ser a simple http server as replacement of python -m http.server

Dec 5, 2022
OpenAPI specs for your Go server, generated at server runtime. No CLI, no code generation, and no HTTP

Overview "oas" is short for "OpenAPI Spec". Go package for generating OpenAPI docs at runtime. Non-features: No code generation. No CLI. No magic comm

Dec 3, 2021
A Language Server Protocol (LSP) server for Jsonnet

Jsonnet Language Server A Language Server Protocol (LSP) server for Jsonnet. Features Jump to definition self-support.mp4 dollar-support.mp4 Error/War

Dec 14, 2022
Go web server - A web server that can accept a GET request and serve a response.

go_web_server A web server that can accept a GET request and serve a response. Go is a great language for creating simple yet efficient web servers an

Jan 3, 2022
:tophat: Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support
:tophat: Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support

Web server with built-in support for QUIC, HTTP/2, Lua, Markdown, Pongo2, HyperApp, Amber, Sass(SCSS), GCSS, JSX, BoltDB (built-in, stores the databas

Jan 1, 2023
Fast, multi-platform web server with automatic HTTPS
Fast, multi-platform web server with automatic HTTPS

a project Every site on HTTPS Caddy is an extensible server platform that uses TLS by default. Releases · Documentation · Get Help Menu Features Insta

Jan 1, 2023