sdk

package module
Version: v0.0.0-...-1a21f29 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 2 Imported by: 0

README

sdk

A FAIRE.

Go Report Card Go Reference

Licence

MIT.


Copyright (c) 2021-2022 losyme

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	CreateJob(job *jw.Job) (*jw.Job, error)
	NextJob(namespace string) (*jw.Job, error)
	UpdateJob(job *jw.Job) (*jw.Job, error)
	CreateWorkflow(wf *jw.Workflow) (*jw.Workflow, error)
}

type Runner

type Runner interface {
	Namespace() string
	Run(job *jw.Job) error
}

type StorageEvent

type StorageEvent struct {
	Type      string      `bson:"type"`
	Timestamp time.Time   `bson:"timestamp"`
	Job       string      `bson:"job"`
	Workflow  string      `bson:"workflow"`
	Data      interface{} `bson:"data"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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