pkg

package
v0.0.0-...-56ff5f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Kunjungan        prometheus.Gauge
	Obat             prometheus.Gauge
	User             prometheus.Gauge
	Penyakit         prometheus.Gauge
	KunjunganUpgrade *prometheus.CounterVec
	ObatUpgrade      *prometheus.CounterVec
	UserUpgrade      *prometheus.CounterVec
	PenyakitUpgrade  *prometheus.CounterVec
	KunjunganHistory *prometheus.HistogramVec
	ObatHistory      *prometheus.HistogramVec
	UserHistory      *prometheus.HistogramVec
	PenyakitHistory  *prometheus.HistogramVec
}

type ILogrust

type ILogrust interface {
	StartLogger(name string, nameFunc string) *logrus.Entry
}

type IPrometheus

type IPrometheus interface {
	SetGauge() *Data
}

func NewMetric

func NewMetric(reg prometheus.Registerer) IPrometheus

type Logger

type Logger struct {
	*logrus.Logger
}

func NewLogger

func NewLogger(conf *config.App) *Logger

func (*Logger) StartLogger

func (l *Logger) StartLogger(name string, nameFunc string) *logrus.Entry

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

func (*Metric) SetGauge

func (m *Metric) SetGauge() *Data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL