common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB sqlite db

View Source
var Ldap = &ldap.LDAP{}

Ldap instance

View Source
var V2ray *v2ray.V2ray

V2ray instance

Functions

func GetDB

func GetDB() *gorm.DB

GetDB return DB

func ParseParamsFromReq

func ParseParamsFromReq(r *http.Request, v interface{}) (err error)

ParseParamsFromReq parse json body

func Resp

func Resp(w http.ResponseWriter, data interface{}, err error)

Resp json data

Types

This section is empty.

Jump to

Keyboard shortcuts

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