Documentation ¶
Index ¶
- Constants
- func Register() prometheus.Registerer
- type Option
- type Service
- func (s *Service) HTTPMiddleware(next http.Handler) http.Handler
- func (s *Service) Registry() prometheus.Registerer
- func (s *Service) RestfulMiddleWare(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func (s *Service) RestfulWebService() *restful.WebService
- func (s *Service) ServerHTTP(resp http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const ( LabelHandler = "handler" LabelHTTPStatus = "status_code" LabelOrigin = "origin" LabelProcessName = "process_name" LabelAppCode = "app_code" LabelHost = "host" )
View Source
const (
Namespace = "mon"
)
View Source
const (
SelectedRoutePath string = "SelectedRoutePath"
)
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register() prometheus.Registerer
Types ¶
type Service ¶
type Service struct { ProcessName string ProcessInstance string // contains filtered or unexported fields }
func (*Service) Registry ¶
func (s *Service) Registry() prometheus.Registerer
func (*Service) RestfulMiddleWare ¶
func (s *Service) RestfulMiddleWare(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func (*Service) RestfulWebService ¶
func (s *Service) RestfulWebService() *restful.WebService
RestfulWebService is the http WebService for go-restful framework
func (*Service) ServerHTTP ¶
func (s *Service) ServerHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.