metrics

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn gopi.RPCClientConn) gopi.RPCClient

Types

type Client

type Client struct {
	pb.MetricsClient
	// contains filtered or unexported fields
}

func (*Client) Conn

func (this *Client) Conn() gopi.RPCClientConn

func (*Client) HostMetrics

func (this *Client) HostMetrics() (*pb.HostMetricsReply, error)

func (*Client) NewContext

func (this *Client) NewContext() context.Context

func (*Client) Ping

func (this *Client) Ping() error

func (*Client) String

func (this *Client) String() string

type Service

type Service struct {
	Server  gopi.RPCServer
	Metrics gopi.Metrics
}

func (Service) Open

func (config Service) Open(log gopi.Logger) (gopi.Driver, error)

Open the server

Jump to

Keyboard shortcuts

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