Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpAdapterPort ¶
type HttpAdapterPort interface { SetListener(listener net.Listener) GetListener() net.Listener SetServerName(name string) UseLogger(logger service.LoggerServicePort) UseMetrics(metrics service.MetricsServicePort) UseSwagger() UseProfiling() AddRoute(method string, path string, handler extra.HttpRequestHandler) Serve() error ServeTLS(certFile, keyFile string) error Shutdown() error GetAdapterName() string }
type LoggerAdapterPort ¶
type MetricsAdapterPort ¶
type MetricsAdapterPort interface { RegisterGoCollector() RegisterProcessCollector() RegisterBuildInfoCollector() NewCounter(opts prometheus.CounterOpts) NewCounterVec(opts prometheus.CounterOpts, labelNames []string) NewGauge(opts prometheus.GaugeOpts) NewGaugeVec(opts prometheus.GaugeOpts, labelNames []string) NewHistogram(opts prometheus.HistogramOpts) NewHistogramVec(opts prometheus.HistogramOpts, labelNames []string) NewSummary(opts prometheus.SummaryOpts) NewSummaryVec(opts prometheus.SummaryOpts, labelNames []string) Counter(name string) prometheus.Counter CounterVec(name string) *prometheus.CounterVec Gauge(name string) prometheus.Gauge GaugeVec(name string) *prometheus.GaugeVec Histogram(name string) prometheus.Histogram HistogramVec(name string) *prometheus.HistogramVec Summary(name string) prometheus.Summary SummaryVec(name string) *prometheus.SummaryVec GetHandler() http.Handler }
Click to show internal directories.
Click to hide internal directories.