Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteCacheValue(key string)
- func Exec(tx *sql.Tx, sql string, args ...interface{}) (sql.Result, error)
- func Fetch(mode string, key string, expire time.Duration, fn func() (string, error)) (string, error)
- func Get(url string) *resty.Response
- func GetCacheValue(key string, mode string) string
- func Main()
- func MustMapBodyFrom(c *gin.Context) map[string]interface{}
- func NormalFetch(key string, expire time.Duration, fn func() (string, error)) (string, error)
- func Post(url string, body map[string]interface{}) *resty.Response
- func QueryRow(db *sql.DB, sql string, args ...interface{}) *sql.Row
- func SetCacheValue(key string, value string, mode string)
- func SetDBValue(row *DBRow)
- func UpdateInTx(tx *sql.Tx, row *DBRow) error
- type DBRow
Constants ¶
View Source
const BusiAPI = "/api/busi"
View Source
const BusiPort = 8081
View Source
const DataKey = "key1"
Variables ¶
View Source
var BusiApp = gin.Default()
View Source
var BusiUrl = fmt.Sprintf("http://localhost:%d%s", BusiPort, BusiAPI)
View Source
var DtmServer = "http://localhost:36789/api/dtmsvr"
Functions ¶
func DeleteCacheValue ¶
func DeleteCacheValue(key string)
func GetCacheValue ¶
func MustMapBodyFrom ¶
func NormalFetch ¶
func SetCacheValue ¶
func SetDBValue ¶
func SetDBValue(row *DBRow)
Types ¶
Click to show internal directories.
Click to hide internal directories.