Code Monkey home page Code Monkey logo

golangbase's Introduction

GolangBase

Build Status

Option 1

run godep save ./... first

Option 2

  1. cd build && chmod +x buildApp.sh && buildApp.sh (version_number) if not set version_number, will set 0.1 as default.

check alive

curl 127.0.0.1:8004/alive

upload interface

echo aa >> test.txt && curl 127.0.0.1:8004/api/v1/file?uname=1 -X POST -F "[email protected]" curl faithio.cn:8004/api/v1/file -X POST -F "[email protected]"

get reflect interface


 curl 127.0.0.1:8004/api/v1/GetValue/upload_file4e40da587ba423e49862a841798f700220543880?uname=1

 curl faithio.cn:8004/api/v1/ListAll/upload_file?uname=1

 curl 127.0.0.1:8004/api/v1/FindLinkByUid/11?uname=1

 curl "127.0.0.1:8004/api/v1/GetAll/Link?uname=1&t=all"
 curl "faithio.cn:8004/api/v1/GetAll/Link?uname=1&t=all"

post reflect interface

  curl "127.0.0.1:8004/api/v1/Insert?uname=1" -X POST -d '{"uid": "curl", "content":"faith", "tbl": "link"}'

redis-cluster

127.0.0.1:7000,127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003,127.0.0.1:7004,127.0.0.1:7005,127.0.0.1:7006,127.0.0.1:7007

pprof


curl 127.0.0.1:8004/_adm/pprof/cpu?seconds=2 -H "adminKey:abcdefg" -o cpu

 brew install  Graphviz

go tool pprof -svg heap >heap.svg

golangbase's People

Contributors

iamfaith avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.