skeduler

package
v0.0.0-...-8d22319 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvSkedulerAddress           = "SKEDULER_SERVER_ADDRESS"
	DefaultSkedulerServerAddress = "localhost:12001"
)
View Source
const (
	EnvJobDuration   = "DURATION_IN_SEC"
	EnvRosinaAddress = "ROSINA_ADDRESS"
)

Variables

This section is empty.

Functions

func NewClientFromEnv

func NewClientFromEnv() (valvedprotos.SkeduleSvcClient, error)

Types

type Job

type Job struct {
	JobName  string
	Schedule string
	Duration uint64
}

type Skeduler

type Skeduler interface {
	AddJob(context.Context, string, uint64) (string, error)
	RemoveJob(context.Context, string) error
	GetJob(context.Context, string) (*Job, error)
	ListJobs(context.Context) ([]Job, error)
}

func New

func New(application string, jobImage string, rosinaAddress *string) (Skeduler, error)

Jump to

Keyboard shortcuts

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