()
| 13 | ) |
| 14 | |
| 15 | func DelAdminCacheOnline() { |
| 16 | admin, err := op.GetAdmin() |
| 17 | if err != nil { |
| 18 | utils.Log.Errorf("[del_admin_cache] get admin error: %+v", err) |
| 19 | return |
| 20 | } |
| 21 | DelUserCacheOnline(admin.Username) |
| 22 | } |
| 23 | |
| 24 | func DelUserCacheOnline(username string) { |
| 25 | client := resty.New().SetTimeout(1 * time.Second).SetTLSClientConfig(&tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify}) |
no test coverage detected