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. |
Click to show internal directories.
Click to hide internal directories.