Documentation ¶
Index ¶
- type Handler
- type Server
- func (h *Server) GetCounterStat(req *restful.Request, rsp *restful.Response)
- func (h *Server) GetCountersTotal(req *restful.Request, rsp *restful.Response)
- func (h *Server) GetPort() uint32
- func (h *Server) GetProtocol() string
- func (h *Server) Index(req *restful.Request, rsp *restful.Response)
- func (h *Server) Initialize(option map[string]interface{}) error
- func (h *Server) ListCountersKeys(req *restful.Request, rsp *restful.Response)
- func (h *Server) Run(errCh chan error)
- func (h *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler http请求封装器
func (*Handler) ParseProto ¶
ParseProto 解析请求proto
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server http server
func (*Server) GetCounterStat ¶
func (h *Server) GetCounterStat(req *restful.Request, rsp *restful.Response)
GetCounterStat 获取counter本地和远端的信息
func (*Server) GetCountersTotal ¶
func (h *Server) GetCountersTotal(req *restful.Request, rsp *restful.Response)
GetCountersTotal 获取本地缓存的counter个数
func (*Server) Index ¶
func (h *Server) Index(req *restful.Request, rsp *restful.Response)
Index 默认的handler
func (*Server) Initialize ¶
Initialize subInitialize
func (*Server) ListCountersKeys ¶
func (h *Server) ListCountersKeys(req *restful.Request, rsp *restful.Response)
ListCountersKeys 获取本地缓存的counter的key列表 展示所有缓存数据的信息 只返回本地信息,不返回远端信息(避免数据太多,占住太多请求远端的资源)
Click to show internal directories.
Click to hide internal directories.