mymc

package
v0.0.0-...-1107578 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMcConnectionTelnet

func CreateMcConnectionTelnet(addr string, timeout uint32) (*telnet.Conn, error)

timeout: millisecond

func GetMemcacheStatsTelnet

func GetMemcacheStatsTelnet(addr string, timeout uint32, cmd string, metricsWanted []string, wrTimeout uint32, rdTimeout uint32, readTo string) (map[string]uint64, error)

func GetMemcacheVersion

func GetMemcacheVersion(mc *memcache.Connection) (result string, err error)

get version of memcached

func GetMemcacheVersionTelnet

func GetMemcacheVersionTelnet(addr string, timeout uint32, wrTimeout uint32, rdTimeout uint32) (string, error)

func GetMemcacheVersionTelnetCon

func GetMemcacheVersionTelnetCon(mcClient *telnet.Conn, wrTimeout uint32, rdTimeout uint32) (string, error)

func ParseMemcacheStats

func ParseMemcacheStats(lines string, metricsWanted []string) map[string]uint64

func SendCmdAndReadResultTelnet

func SendCmdAndReadResultTelnet(mcClient *telnet.Conn, cmd string, wrTimeout uint32, rdTimeout uint32, readTo string) (string, error)

wrTimeout, rdTimeout: millisecond

Types

This section is empty.

Jump to

Keyboard shortcuts

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