csv

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilenameForwarder

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

FilenameForwarder prints datapoints to a file

func ForwarderLoader

func ForwarderLoader(forwardTo *config.ForwardTo) (*FilenameForwarder, error)

ForwarderLoader loads a CSV forwarder forwarding points from proxy to a file

func NewForwarder

func NewForwarder(name string, filename string) (*FilenameForwarder, error)

NewForwarder creates a new filename forwarder

func (*FilenameForwarder) AddDatapoints

func (connector *FilenameForwarder) AddDatapoints(ctx context.Context, points []*datapoint.Datapoint) error

AddDatapoints writes the points to a file

func (*FilenameForwarder) Close

func (connector *FilenameForwarder) Close() error

Close does nothing. We foolishly reopen the file on each AddDatapoints

func (*FilenameForwarder) Stats

func (connector *FilenameForwarder) Stats() []*datapoint.Datapoint

Stats returns an empty list

Jump to

Keyboard shortcuts

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