mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
unexport types
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
// - http.Handler(s) for server related endpoints
|
||||
// ****************************************************************************
|
||||
|
||||
type ListServersResponse struct {
|
||||
Servers []*ServerInfo `json:"servers"`
|
||||
type listServersResponse struct {
|
||||
Servers []*serverInfo `json:"servers"`
|
||||
}
|
||||
|
||||
func newListServersHandlerFunc(inspector *asynq.Inspector, pf PayloadFormatter) http.HandlerFunc {
|
||||
@@ -23,7 +23,7 @@ func newListServersHandlerFunc(inspector *asynq.Inspector, pf PayloadFormatter)
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
resp := ListServersResponse{
|
||||
resp := listServersResponse{
|
||||
Servers: toServerInfoList(srvs, pf),
|
||||
}
|
||||
if err := json.NewEncoder(w).Encode(resp); err != nil {
|
||||
|
Reference in New Issue
Block a user