From e71d3c7810af7fc4464a6882571e569bcd52443e Mon Sep 17 00:00:00 2001 From: John-Lin Date: Thu, 11 Oct 2018 12:12:41 +0800 Subject: [PATCH] page size to 1024 --- src/server/handler_configmap.go | 2 +- src/server/handler_deployment.go | 2 +- src/server/handler_namespace.go | 2 +- src/server/handler_network.go | 2 +- src/server/handler_pod.go | 2 +- src/server/handler_service.go | 2 +- src/server/handler_storage.go | 2 +- src/server/handler_user.go | 2 +- src/server/handler_volume.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/server/handler_configmap.go b/src/server/handler_configmap.go index b0a97207..b5c75fa3 100644 --- a/src/server/handler_configmap.go +++ b/src/server/handler_configmap.go @@ -123,7 +123,7 @@ func deleteConfigMapHandler(ctx *web.Context) { func listConfigMapHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_deployment.go b/src/server/handler_deployment.go index 8b895d85..f1785ed6 100644 --- a/src/server/handler_deployment.go +++ b/src/server/handler_deployment.go @@ -161,7 +161,7 @@ func deleteDeploymentHandler(ctx *web.Context) { func listDeploymentHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_namespace.go b/src/server/handler_namespace.go index 361a12e3..a228f29a 100644 --- a/src/server/handler_namespace.go +++ b/src/server/handler_namespace.go @@ -119,7 +119,7 @@ func deleteNamespaceHandler(ctx *web.Context) { func listNamespaceHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_network.go b/src/server/handler_network.go index d17f070e..5a1c3d62 100644 --- a/src/server/handler_network.go +++ b/src/server/handler_network.go @@ -87,7 +87,7 @@ func createNetworkHandler(ctx *web.Context) { func listNetworkHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_pod.go b/src/server/handler_pod.go index 29c444d6..d7c62111 100644 --- a/src/server/handler_pod.go +++ b/src/server/handler_pod.go @@ -144,7 +144,7 @@ func deletePodFromClusterHandler(ctx *web.Context) { func listPodHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_service.go b/src/server/handler_service.go index 06ae329f..732a4d3b 100644 --- a/src/server/handler_service.go +++ b/src/server/handler_service.go @@ -122,7 +122,7 @@ func deleteServiceHandler(ctx *web.Context) { func listServiceHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_storage.go b/src/server/handler_storage.go index 92bf81e8..42b05ec9 100644 --- a/src/server/handler_storage.go +++ b/src/server/handler_storage.go @@ -86,7 +86,7 @@ func createStorage(ctx *web.Context) { func listStorage(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_user.go b/src/server/handler_user.go index dd864284..58147f4d 100644 --- a/src/server/handler_user.go +++ b/src/server/handler_user.go @@ -269,7 +269,7 @@ func deleteUserHandler(ctx *web.Context) { func listUserHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1) diff --git a/src/server/handler_volume.go b/src/server/handler_volume.go index 5d4d16cf..3a2a5b94 100644 --- a/src/server/handler_volume.go +++ b/src/server/handler_volume.go @@ -115,7 +115,7 @@ func deleteVolumeHandler(ctx *web.Context) { func listVolumeHandler(ctx *web.Context) { sp, req, resp := ctx.ServiceProvider, ctx.Request, ctx.Response - var pageSize = 10 + var pageSize = 1024 query := query.New(req.Request.URL.Query()) page, err := query.Int("page", 1)