courier

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 29 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsCourierTest = false

Functions

func GoMailSendMail

func GoMailSendMail(ctx context.Context, recipients []string, subject string, msg string,
	attachments []string) *log.Status

func ParseYaml added in v1.2.0

func ParseYaml(yamlContent string, name string) string

func SQSEnqueue

func SQSEnqueue(ctx context.Context, queueURL string, data any) (string, *log.Status)

func SendNtfy added in v1.2.0

func SendNtfy(ctx context.Context, topic string, success bool, message string, subject string,
	priority string, attachment string) *log.Status

Types

type CompletionMsg

type CompletionMsg struct {
	DatasetName string `yaml:"dataset_name"`
	Success     bool   `yaml:"success"`
	Completion  string `yaml:"completion"`
	Duration    string `yaml:"duration"`
	Bucket      string `yaml:"bucket"`
	Object      string `yaml:"object"`
}

type Component added in v1.2.0

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

func NewComponent added in v1.2.0

func NewComponent(request string, name string) Component

func (*Component) FinishComponent added in v1.2.0

func (c *Component) FinishComponent(outputs []db.Output, runStatus *log.Status)

func (*Component) StartComponent added in v1.2.0

func (c *Component) StartComponent() (db.DBAdapter, request.Request, *log.Status)

type Courier

type Courier struct {
	Component string
	// contains filtered or unexported fields
}

func NewCourier

func NewCourier(ctx context.Context, yaml []byte) Courier

func (*Courier) AddDatabase

func (b *Courier) AddDatabase(conn db.DBAdapter)

func (*Courier) AddJson

func (b *Courier) AddJson(records any, output db.Output)

func (*Courier) AddLogFile

func (b *Courier) AddLogFile(logPath string)

func (*Courier) AddOutput

func (b *Courier) AddOutput(outputPath string)

func (*Courier) AddOutputList added in v1.2.0

func (b *Courier) AddOutputList(output []db.Output)

func (*Courier) GetOutputByExt

func (b *Courier) GetOutputByExt() []string

func (*Courier) GetOutputPaths

func (b *Courier) GetOutputPaths() []string

func (*Courier) Notification

func (b *Courier) Notification(req request.Request, status *log.Status, duration time.Duration) *log.Status

func (*Courier) PersistModel added in v1.2.0

func (b *Courier) PersistModel(prefix string, localDir string) *log.Status

PersistModel uploads a newly trained model to the models bucket as the next model run. It is called as soon as training completes, so that later steps, which always download the latest model, get the one just trained.

func (*Courier) PersistToBucket

func (b *Courier) PersistToBucket(runStatus *log.Status) *log.Status

type LongRunNotify

type LongRunNotify struct {
	EstimateMin float64
	Threshold   time.Duration
	// contains filtered or unexported fields
}

func NewLongRunNotify

func NewLongRunNotify(ctx context.Context, request request.Request) LongRunNotify

func (LongRunNotify) SendEmail

func (l LongRunNotify) SendEmail()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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