Shepherd

command module
v0.0.0-...-00b26e8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 13 Imported by: 0

README

Sheep服务端Golang(Gin)

  • Sheep —— Android(Kotlin)

前期准备

云主机: 阿里云、腾讯云、Vultr —— 47.93.228.168

域名+证书 + DNS:新网 + Letsencrypt.orgBuypass.com + DNS —— https://www.neday.cn/ping

系统及服务 : CentOS + LNMP(Nginx/MySQL/PHP) + Redis

LAMP(Apache/MySQL/PHP)LNMPA(Nginx/MySQL/PHP/Apache)

PHP探针

phpmyadmin + Navicat Premium 12

数据库无法远程访问: 云服务器安全组 + CentOS防火墙iptables + phpmyadmin user 配置 %

​ ssh连接工具:** Xshell 6 、MobaXterm

​ 常用第三方包指令: lrzsz(rz,sz) 、screen

大淘客API <——> Shepherd Swagger <——> Sheep

main.go

  • build —— *.ini, ssl, 可执行文件
  • controllor
  • docs
  • middleware
    • jwt
  • model —— GORM
  • pkg
    • logger
    • redis
    • config
    • jwt
    • scrypt
    • response
  • router

MySQL命名、设计及使用规范

Golang交叉编译 & Makefile

supervisor 管理进程 —— http://47.93.228.168:9001

存储密码方案

hash 、 hash + salt 、dk := scrypt.Key([]byte("password"), []byte("salt"), 16384, 8, 1, 32)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
jwt
sms

Jump to

Keyboard shortcuts

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