stats

package
v0.0.0-...-02374a7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitStat

func InitStat(statsCfg *StatsConfig)

func LogAerospikeErrorStats

func LogAerospikeErrorStats()

func LogCacheFailedGetStats

func LogCacheFailedGetStats(errorString string)

func LogCacheFailedPutStats

func LogCacheFailedPutStats(errorString string)

func LogCacheMissStats

func LogCacheMissStats()

func LogCacheRequestedGetStats

func LogCacheRequestedGetStats()

func LogCacheRequestedPutStats

func LogCacheRequestedPutStats()

Types

type StatsConfig

type StatsConfig struct {
	Host                      string `mapstructure:"host"`
	Port                      string `mapstructure:"port"`
	DCName                    string `mapstructure:"dc_name"`
	DefaultHostName           string `mapstructure:"default_hostname"`
	UseHostName               bool   `mapstructure:"use_hostname"`
	PublishInterval           int    `mapstructure:"publish_interval"`
	PublishThreshold          int    `mapstructure:"publish_threshold"`
	Retries                   int    `mapstructure:"retries"`
	DialTimeout               int    `mapstructure:"dial_timeout"`
	KeepAliveDuration         int    `mapstructure:"keep_alive_duration"`
	MaxIdleConnections        int    `mapstructure:"max_idle_connections"`
	MaxIdleConnectionsPerHost int    `mapstructure:"max_idle_connections_per_host"`
}

Jump to

Keyboard shortcuts

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