Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the API server
func NewServer ¶
func NewServer(store *storage.Storage, host string, port int, m *metrics.Metrics, log *zerolog.Logger) *Server
NewServer creates a new API server
func (*Server) GetMetrics ¶ added in v1.2.0
GetMetrics returns the metrics instance
func (*Server) RefreshMetrics ¶ added in v1.2.0
func (s *Server) RefreshMetrics()
RefreshMetrics updates all Prometheus metrics from current database state
Click to show internal directories.
Click to hide internal directories.