exampletasks

package
v0.0.0-...-b386846 Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package exampletasks - some sample tasks Each task should implement v1.Task interface. Put your business logic inside the Run method. Task arguments are available in the args slice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTask

type AddTask struct{}

AddTask ...

func (AddTask) Run

func (t AddTask) Run(args []interface{}) (interface{}, error)

Run - runs the task and returns sum of all numbers in args

type MultiplyTask

type MultiplyTask struct{}

MultiplyTask ...

func (MultiplyTask) Run

func (t MultiplyTask) Run(args []interface{}) (interface{}, error)

Run - runs the task and returns result of all numbers in args multiplied

Jump to

Keyboard shortcuts

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