Documentation ¶
Index ¶
- Variables
- func Amqp() (conn *amqp.Connection, err error)
- func GetAuthorization(r *http.Request) (s string)
- func GetBearer(r *http.Request) (s string)
- func GetClientIp(r *http.Request) (ip string)
- func InitConfig(path ...string) (err error)
- func MySQL() (db *sql.DB, err error)
- func Now(format ...string) string
- func Pln(a ...any)
- func Str2Time(s string) (i int, err error)
- func YunPianSend(mobile, msg string) (err error)
- type Return
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = map[string]map[string]string{}
View Source
var Controller = map[string]func(http.ResponseWriter, *http.Request){ "controller.Home": controller.Home, "controller.Status404": controller.Status404, }
View Source
var Route = map[string]string{
"/": "controller.Home",
"/favicon.ico": "controller.Status404",
}
View Source
var TEST = true
Functions ¶
func Amqp ¶ added in v1.0.12
func Amqp() (conn *amqp.Connection, err error)
func GetAuthorization ¶ added in v1.0.12
func GetClientIp ¶ added in v1.0.18
func InitConfig ¶ added in v1.0.14
func YunPianSend ¶ added in v1.0.16
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.