debug.go 270 B

123456789101112131415
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func debugCache(c *bm.Context) {
  6. opt := new(struct {
  7. Keys string `form:"keys" validate:"required"`
  8. })
  9. if err := c.Bind(opt); err != nil {
  10. return
  11. }
  12. c.JSONMap(srv.DebugCache(opt.Keys), nil)
  13. }