mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 07:00:00 +02:00
initial prometheus metrics support, simplfied some code
This commit is contained in:
@@ -38,6 +38,12 @@ type Options struct {
|
||||
Handler http.Handler
|
||||
}
|
||||
|
||||
func StartServer(opt Options) (s *Server) {
|
||||
s = NewServer(opt)
|
||||
s.Start()
|
||||
return s
|
||||
}
|
||||
|
||||
func NewServer(opt Options) (s *Server) {
|
||||
var httpSer, httpsSer *http.Server
|
||||
var httpHandler http.Handler
|
||||
|
||||
Reference in New Issue
Block a user