🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/chawinnewviyawong/session_management

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/chawinnewviyawong/session_management

Source
Go
Version
v0.0.0-20190830100651-95187c339854
Version published
Created
Source

#sample go api server use

  • framwork to backend server base golang dependant
  • database store manage session
  • backend server auth user & SDK for hyperledger fabric base javascript
  • database store logs connect
  • framwork to frontend

go install lib

go get github.com/gin-contrib/cors github.com/gin-gonic/gin github.com/go-redis/redis

How run gin api server

golang version 1.10.X ^ run command to terminal

go run server.go  redis.go  sessionmgmt.go  logger.go 

Example for run time

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /                         --> main.(*operation).FirstPage-fm (5 handlers)
[GIN-debug] POST   /login                    --> main.(*operation).Login-fm (5 handlers)
[GIN-debug] POST   /getAllCars               --> main.(*operation).GetAllCars-fm (5 handlers)
[GIN-debug] Listening and serving HTTP on 0.0.0.0:3000
INFO 2019-08-27T16:41:56+07:00 |Start API Server 0.0.0.0:3000| "actor":"" "component":"GO_API_SERVER" "function":"setupRouter"   "uuid":""

FAQs

Package last updated on 30 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts