csv

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2015 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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