graphite

package
v0.0.0-...-d30abd5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

package graphite

import "github.com/zeebo/rothko/listener/graphite"

package graphite provides a listener for the graphite wire protocol.

Usage

type Listener
type Listener struct {
}

Listener implements the listener.Listener for the graphite wire protocol.

func New
func New(address string) *Listener

New returns a Listener that when Run will listen on the provided address.

func (*Listener) Run
func (l *Listener) Run(ctx context.Context, w *data.Writer) (err error)

Run listens on the address and writes all of the metrics to the writer.

Documentation

Overview

package graphite provides a listener for the graphite wire protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

Listener implements the listener.Listener for the graphite wire protocol.

func New

func New(address string) *Listener

New returns a Listener that when Run will listen on the provided address.

func (*Listener) Run

func (l *Listener) Run(ctx context.Context, w *data.Writer) (err error)

Run listens on the address and writes all of the metrics to the writer.

Jump to

Keyboard shortcuts

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