script

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: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(meta *reader.Meta, conf conf.MapConf) (sr reader.Reader, err error)

Types

type Reader

type Reader struct {
	Cron *cron.Cron //定时任务
	// contains filtered or unexported fields
}

func (*Reader) Close

func (sr *Reader) Close() (err error)

func (*Reader) LoopRun

func (sr *Reader) LoopRun()

func (*Reader) Name

func (sr *Reader) Name() string

func (*Reader) ReadLine

func (sr *Reader) ReadLine() (data string, err error)

func (*Reader) SetMode

func (sr *Reader) SetMode(mode string, v interface{}) error

func (*Reader) Source

func (sr *Reader) Source() string

func (*Reader) Start

func (sr *Reader) Start()

Start 仅调用一次,借用ReadLine启动,不能在new实例的时候启动,会有并发问题

func (*Reader) SyncMeta

func (sr *Reader) SyncMeta()

Jump to

Keyboard shortcuts

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