randomnumber

package module
v0.0.0-...-dceaa68 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 4 Imported by: 2

README

Random Number

This activity provides your Flogo app the ability to generate a random unique number between the min and max value

Installation

flogo install github.com/retgits/flogo-components/activity/randomnumber

Link for flogo web:

https://github.com/retgits/flogo-components/activity/randomnumber

Schema

Inputs and Outputs:

{
"inputs":[
    {
      "name": "min",
      "type": "integer"
    },
    {
      "name": "max",
      "type": "integer"
    }
  ],
  "outputs": [
    {
      "name": "result",
      "type": "integer"
    }
  ]
}

Inputs

Input Description
min The minimum value of the random number
max The maximum value of the random number

Ouputs

Output Description
result The random number

Documentation

Overview

Package randomnumber generates a random number between the minimum and maximum values supplied.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type MyActivity

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

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

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