file

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONLineMarshalFunc

func JSONLineMarshalFunc(datas []Data) ([]byte, error)

JSONLineMarshalFunc 将数据json并且按换行符分隔

func NewSender

func NewSender(conf conf.MapConf) (fileSender sender.Sender, err error)

file sender

Types

type Sender

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

Sender write datas into local file only for test

func (*Sender) Close

func (fs *Sender) Close() error

func (*Sender) Name

func (fs *Sender) Name() string

func (*Sender) Send

func (fs *Sender) Send(datas []Data) error

Send inherit from Sender

Jump to

Keyboard shortcuts

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