Directories ¶
Path | Synopsis |
---|---|
common
|
|
cron
This package provides scheduled(by interval) service for jobs.
|
This package provides scheduled(by interval) service for jobs. |
gin
Some convenient utility for usage of gin framework JSON service ginConfig := &GinConfig{ Mode: gin.ReleaseMode, Host: "localhost", Port: 8080, } engine := NewDefaultJsonEngine(ginConfig) // Start service // StartServiceOrExit(engine, ginConfig) // Binds the engine into existing HTTP service http.Handle("/root-service", engine) Panic in Code By using of "NewDefaultJsonEngine()", any panic code would be output as: { "http_status": 500, "error_code": -1, "error_message": fmt.Sprintf("%v", panicObject), } And the HTTP engine would keep running.
|
Some convenient utility for usage of gin framework JSON service ginConfig := &GinConfig{ Mode: gin.ReleaseMode, Host: "localhost", Port: 8080, } engine := NewDefaultJsonEngine(ginConfig) // Start service // StartServiceOrExit(engine, ginConfig) // Binds the engine into existing HTTP service http.Handle("/root-service", engine) Panic in Code By using of "NewDefaultJsonEngine()", any panic code would be output as: { "http_status": 500, "error_code": -1, "error_message": fmt.Sprintf("%v", panicObject), } And the HTTP engine would keep running. |
gin/mvc
A MVC binder for free-style of function handler with *gin.Context Abstract There are may tedious processes for coding on web service: 1.
|
A MVC binder for free-style of function handler with *gin.Context Abstract There are may tedious processes for coding on web service: 1. |
http
This package provides out-of-box configuration for initializing client object to calling of RESTful API services.
|
This package provides out-of-box configuration for initializing client object to calling of RESTful API services. |
net
Provides various utilities to construct listener
|
Provides various utilities to construct listener |
runtime
Because go language does not have industrial level of exception handing mechanism, using the information of calling state is the only way to expose secret in code.
|
Because go language does not have industrial level of exception handing mechanism, using the information of calling state is the only way to expose secret in code. |
testing/check
This package provindes extensions to "gopkg.in/check.v1".
|
This package provindes extensions to "gopkg.in/check.v1". |
testing/db
The base environment for RDB testing Flags This package has pre-defined flags of command: -dsn_mysql - MySQL DSN used to intialize configuration of mysql connection
|
The base environment for RDB testing Flags This package has pre-defined flags of command: -dsn_mysql - MySQL DSN used to intialize configuration of mysql connection |
testing/flag
Provides unified interface to access needed flags when you are testing.
|
Provides unified interface to access needed flags when you are testing. |
testing/http
Provides both HTTP client and HTTP fake server configuration for testing.
|
Provides both HTTP client and HTTP fake server configuration for testing. |
testing/http/gock
Out-of-box Gock/Gentleman functions.
|
Out-of-box Gock/Gentleman functions. |
testing/http/gock_plugin
Plugin for using Gock on Gentleman library.
|
Plugin for using Gock on Gentleman library. |
textbuilder
This package provides lazy-loading and postfix binding for text building.
|
This package provides lazy-loading and postfix binding for text building. |
types
This package provides out-of-box conversion service.
|
This package provides out-of-box conversion service. |
utils
This package provides misc utilities.
|
This package provides misc utilities. |
modules
|
|
fe/grpc/proto/owlquery
Package owlapi is a generated protocol buffer package.
|
Package owlapi is a generated protocol buffer package. |
query/grpc/proto/owlquery
Package owlapi is a generated protocol buffer package.
|
Package owlapi is a generated protocol buffer package. |
scripts
|
|
mysql/dbpatch/go/changelog
As the loading process for change log
|
As the loading process for change log |
mysql/dbpatch/go/sql
Connect and execute patch
|
Connect and execute patch |
sdk
|
|
Click to show internal directories.
Click to hide internal directories.