fullerite: github.com/Yelp/fullerite/src/fullerite/internalserver Index | Files

package internalserver

import "github.com/Yelp/fullerite/src/fullerite/internalserver"


Package Files


type InternalServer Uses

type InternalServer struct {
    // contains filtered or unexported fields

InternalServer will collect from each handler the status and return it over HTTP

func New Uses

func New(cfg config.Config, h InternalStatFunc, c InternalStatFunc) *InternalServer

New createse a new internal server instance

func (*InternalServer) Run Uses

func (srv *InternalServer) Run()

Run starts a server on the specified port listening for the provided path

type InternalStatFunc Uses

type InternalStatFunc func() (stats map[string]metric.InternalMetrics)

InternalStatFunc can be used to extract metrics

type ResponseFormat Uses

type ResponseFormat struct {
    Memory     metric.InternalMetrics
    Handlers   map[string]metric.InternalMetrics
    Collectors map[string]metric.InternalMetrics

ResponseFormat is the structure of the response from an http request

Package internalserver imports 9 packages (graph). Updated 2016-11-26. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).

The go get command cannot install this package because of the following issues: