Documentation
¶
Index ¶
- func BuildClickhouseDSN(dbMap map[string]any) string
- func BuildMysqlDSN(dbMap map[string]any) string
- func Contains(arr []string, str string) bool
- func GetClient() *resty.Client
- func GetClientIP(c *gin.Context) string
- func ParseMap(valueMap map[string]any, prefix string, result map[string]any)
- func PrintFormat(obj any)
- func PrintReqParams(c *gin.Context)
- func RandomTTL(seconds int) time.Duration
- func TimeToTimestamp(fromDatetime string, fromTimezone string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClickhouseDSN ¶ added in v1.1.9
BuildClickhouseDSN 拼接 ClickHouse DSN,自动处理特殊字符
func BuildMysqlDSN ¶
BuildMysqlDSN 拼接 MySQL DSN,自动处理特殊字符
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.