util

package
v0.0.0-...-357db74 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusSyncSql

func BusSyncSql(code, vpn, port, sql string) string

func GetIniInt

func GetIniInt(sectionName string, key string) int

func GetIniVal

func GetIniVal(sectionName string, key string) string

func GetSection

func GetSection(sectionName string) *ini.Section

func HandleError

func HandleError(err error, message string, flag bool)

func HandleResp

func HandleResp(resp *http.Response) string

func HttpGet

func HttpGet(uu string, params url.Values) string

func HttpPost

func HttpPost(uu string, data string) string

func MySqlConnInit

func MySqlConnInit(dbInfo model.DBInfo) *sqlx.DB

func MySqlExecSql

func MySqlExecSql(db *sqlx.DB, sqlStr string, args ...interface{})

func MySqlPrepareSql

func MySqlPrepareSql(db *sqlx.DB, sqlString string)

func MySqlQueryAll

func MySqlQueryAll(db *sqlx.DB, sqlStr string, args ...interface{}) ([]map[string]string, error)

func MySqlQueryOne

func MySqlQueryOne(db *sqlx.DB, sqlStr string, args ...interface{}) (map[string]string, error)

func MySqlReadSqlExec

func MySqlReadSqlExec(db *sqlx.DB)

func OrclConnInit

func OrclConnInit(param map[string]interface{}) *sql.DB

func OrclCustomQuery

func OrclCustomQuery(oracledb *sql.DB, sqlString string) []map[string]interface{}

func OrclQueryAll

func OrclQueryAll(oracledb *sql.DB, sqlStr string, args ...interface{}) ([]map[string]string, error)

func OrclQueryOne

func OrclQueryOne(oracledb *sql.DB, sqlStr string, args ...interface{}) (map[string]string, error)

func Pause

func Pause()

func ReadIniInit

func ReadIniInit(fileName string)

func ReadLineFile

func ReadLineFile(fileName string) list.List

func UserGet

func UserGet(appid string, appsecret string)

func WriteByteArray

func WriteByteArray(filename string, tmp string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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