tiger

command module
v0.0.0-...-3f9575c Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 15 Imported by: 0

README

tiger

Go mini-web framework

How to use tiger framework

Step 1 Ensure config/config.json are setup correctly for your environment.

Step 2 Start to add your application specific code in util/http/handler_util.go Refer to the relevant package documentation on how to do it.

Step 3 Compile by running go build. tiger.exe or tiger will be created.

Step 4 From Windows Command Prompt or Linux terminal, execute tiger.exe or tiger &

Step 5 Use a browser and navigate to your configured url in Step 1 config.json e.g http://localhost:8000 You should see a message I am alive! This mean your http server is up and running. To shutdown, send a SIGINT signal. Ctrl-C for Windows Command Prompt. kill -SIGINT for Linux.

Install below Go dependency packages separately

Step 1 go get -v github.com/go-sql-driver/mysql

Step 2 go get -v golang.org/x/text

View the framework documentation

Step 1 godoc -http=localhost:6060

Step 2 Use a browser and navigate to http://localhost:6060/pkg/tiger/

Contact

Any bug/suggestion/feedback can mail to sohguanh@gmail.com

Donate

Yes I know almost 99.99% of people do not donate. But I still include a PayPal Donate for that 0.01% (if they exist) and they appreciate the work I have done or my work has helped them in anyway.

paypal

🐯 🐯 🐯

Documentation

Overview

main package where the http server will be started up/shutdown.

How to use tiger framework

Step 1
Ensure config/config.json are setup correctly for your environment.

Step 2
Start to add your application specific code in util/http/handler_util.go Refer to the relevant package documentation on how to do it.

Step 3
Compile by running go build. tiger.exe or tiger will be created.

Step 4
From Windows Command Prompt or Linux terminal, execute tiger.exe or tiger &

Step 5
Use a browser and navigate to your configured url in Step 1 config.json e.g http://localhost:8000
You should see a message I am alive! This mean your http server is up and running.
To shutdown, send a SIGINT signal. Ctrl-C for Windows Command Prompt. kill -SIGINT <pid> for Linux.

Directories

Path Synopsis
config is the package that is doing the parsing of config.json into a Config object to be used for the application.
config is the package that is doing the parsing of config.json into a Config object to be used for the application.
util
client
clientUtil is a thin wrapper over http.Client and net.* to provide different timeout,number of retries,time to wait between each retry for each http and net request.
clientUtil is a thin wrapper over http.Client and net.* to provide different timeout,number of retries,time to wait between each retry for each http and net request.
datetime
dateTimeUtil is a package providing some convenient functions that is date/time related.
dateTimeUtil is a package providing some convenient functions that is date/time related.
db
dbUtil package has dependency on a third party package.
dbUtil package has dependency on a third party package.
http
httpUtil is the main package containing all http server related features for application usage.
httpUtil is the main package containing all http server related features for application usage.
i18n
i18nUtil package has dependency on a third party package.
i18nUtil package has dependency on a third party package.
log
logUtil package is not going to replace the Go default log package.
logUtil package is not going to replace the Go default log package.
ratelimiter
rateLimiter is the package that contain the different algorithm for API rate limiting.
rateLimiter is the package that contain the different algorithm for API rate limiting.
template
templateUtil is the package that cache the template.Template object so it can be reused across different calls from callers.
templateUtil is the package that cache the template.Template object so it can be reused across different calls from callers.

Jump to

Keyboard shortcuts

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