beater

package
v0.0.0-...-14f9e8d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSchedule

func CheckSchedule(c config.Script) *time.Ticker

func CreateGorutinScript

func CreateGorutinScript(c config.Script, chanalOne chan string, chanalTwo chan string, i string)

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of examplebeat.

func OutputScript

func OutputScript(c config.Script) string

func PublishScript

func PublishScript(bt *Examplebeat, chanalOne chan string, chanalTwo chan string)

Types

type Examplebeat

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

Examplebeat configuration.

func (*Examplebeat) Run

func (bt *Examplebeat) Run(b *beat.Beat) error

Run starts examplebeat.

func (*Examplebeat) Stop

func (bt *Examplebeat) Stop()

Stop stops examplebeat.

type Schedule

type Schedule cronexpr.Expression

Jump to

Keyboard shortcuts

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