Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoMetrics ¶ added in v0.1.14
type MetricsCollector ¶ added in v0.1.17
type MetricsCollector interface { Setup(function interface{}) Collect(metrics *MemoMetrics) }
type Option ¶ added in v0.1.14
type Option func(*memoizeOptions)
func WithExpiration ¶
func WithIgnoreParams ¶ added in v0.1.23
func WithMaxSize ¶
func WithMetrics ¶ added in v0.1.17
func WithMetrics(collector MetricsCollector) Option
type PrometheusMetricsCollector ¶ added in v0.1.17
type PrometheusMetricsCollector struct {
// contains filtered or unexported fields
}
func NewPrometheusMetricsCollector ¶ added in v0.1.17
func NewPrometheusMetricsCollector(labels ...string) *PrometheusMetricsCollector
func (*PrometheusMetricsCollector) Collect ¶ added in v0.1.17
func (p *PrometheusMetricsCollector) Collect(metrics *MemoMetrics)
func (*PrometheusMetricsCollector) Setup ¶ added in v0.1.17
func (p *PrometheusMetricsCollector) Setup(function interface{})
Click to show internal directories.
Click to hide internal directories.