runtime

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFlags

func ConfigFlags(cmd *cobra.Command, prefix string) error

ConfigFlags helps configure cobra and viper flags.

Types

type Config

type Config struct {
	Disable bool `mapstructure:"disable"`
	Debug   bool `mapstructure:"debug"`
}

Config is runtime configuration

func (*Config) Validate

func (c *Config) Validate() error

Validate configuration is ok

type Runtime

type Runtime struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Runtime manages the empirica recruitment run loop that will trigger timed events as needed (start run, go to next step, etc.)

func Start

func Start(conf *Config, conn *storage.Conn, mturk, mturkSandbox *mturk.Session) (*Runtime, error)

Start the empirica recruitment runtime

func (*Runtime) Stop

func (r *Runtime) Stop()

Stop the empirica recruitment runtime

Jump to

Keyboard shortcuts

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