scheduler

package module
v0.0.0-...-1b52d4e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Builder Library

Builder-Library is a library to create ernest builders, it works as a bridge between the workflow manager and the corresponding adapters, and receiving a bunch of components to process will generate as much 'component.create' messages as components we have.

Once all of them are fully processed it will emit back a message 'component.process.done' as confirmation or 'component.process.error' in case something is broken

Using it

	s.Setup(os.Getenv("NATS_URI"))
	s.ProcessRequest("components.process", "component.process")
	s.ProcessSuccessResponse("component.process.done", "component.process", "components.process.done")
	s.ProcessFailedResponse("component.process.error", "components.process.error")

Build status

  • master: CircleCI

Installation

make deps
make install

Running Tests

make test

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, if your pull request contains patches or features, you must include relevant unit tests.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, this project is maintained under the Semantic Versioning guidelines.

Code and documentation copyright since 2015 r3labs.io authors.

Code released under the Mozilla Public License Version 2.0.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    json.Number `json:"code,Number"`
	Message string      `json:"message"`
}

type Scheduler

type Scheduler struct {
	C *ecc.Config
	R *redis.Client
	N *nats.Conn
	// contains filtered or unexported fields
}

func (*Scheduler) ProcessFailedResponse

func (s *Scheduler) ProcessFailedResponse(from string, to string)

func (*Scheduler) ProcessRequest

func (s *Scheduler) ProcessRequest(from string, to string)

func (*Scheduler) ProcessSuccessResponse

func (s *Scheduler) ProcessSuccessResponse(from string, nex string, done string)

func (*Scheduler) Setup

func (s *Scheduler) Setup(n string)

Jump to

Keyboard shortcuts

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