mcrouter

package
v0.0.0-...-c12f8f0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mcrouter gathers mcrouter related data from a host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMcRouterStats

func NewMcRouterStats() readers.IReader

func NewStatsFromNetcat

func NewStatsFromNetcat(data []byte) map[string]interface{}

Types

type Base

type Base struct {
	HostAndPort string
	ConfigFile  string
}

func (*Base) Stats

func (mcr *Base) Stats() (map[string]interface{}, error)

func (*Base) StatsFromFile

func (mcr *Base) StatsFromFile() (map[string]interface{}, error)

func (*Base) StatsFromNetcat

func (mcr *Base) StatsFromNetcat() (map[string]interface{}, error)

type McRouterStats

type McRouterStats struct {
	Data map[string]interface{}
	Base
}

func (*McRouterStats) Run

func (r *McRouterStats) Run() error

func (*McRouterStats) ToJson

func (r *McRouterStats) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

Jump to

Keyboard shortcuts

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