unexport types

This commit is contained in:
ajatprabha
2021-10-04 20:48:00 +05:30
committed by Ken Hibino
parent 4b54ec1548
commit d0b72f135c
10 changed files with 120 additions and 118 deletions

View File

@@ -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 {