gopinba

package module
v0.0.0-...-471ad6b Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: MIT Imports: 5 Imported by: 2

README

gopinba Build Status

Pinba (http://pinba.org) Go client.

Documentation can be found here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(address string) (*Client, error)

func (*Client) SendRequest

func (pc *Client) SendRequest(request *Request) error

type Request

type Request struct {
	Hostname     string
	ServerName   string
	ScriptName   string
	Schema       string
	RequestCount uint32
	RequestTime  time.Duration
	DocumentSize uint32
	MemoryPeak   uint32
	Utime        float32
	Stime        float32

	Status uint32
	Tags   map[string]string
	// contains filtered or unexported fields
}

func (*Request) AddTimer

func (req *Request) AddTimer(timer *Timer)

func (*Request) TimerAdd

func (req *Request) TimerAdd(timer *Timer)

this is exactly the same as AddTimer

exists only to have api naming similar to pinba php extension

type Timer

type Timer struct {
	Tags map[string]string
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer(tags map[string]string, duration time.Duration) *Timer

func TimerStart

func TimerStart(tags map[string]string) *Timer

func (*Timer) GetDuration

func (t *Timer) GetDuration() time.Duration

func (*Timer) Stop

func (t *Timer) Stop()

Directories

Path Synopsis
Package Pinba is a generated protocol buffer package.
Package Pinba is a generated protocol buffer package.
cmd

Jump to

Keyboard shortcuts

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