Documentation
¶
Index ¶
- Variables
- func GoMailSendMail(ctx context.Context, recipients []string, subject string, msg string, ...) *log.Status
- func ParseYaml(yamlContent string, name string) string
- func SQSEnqueue(ctx context.Context, queueURL string, data any) (string, *log.Status)
- func SendNtfy(ctx context.Context, topic string, success bool, message string, ...) *log.Status
- type CompletionMsg
- type Component
- type Courier
- func (b *Courier) AddDatabase(conn db.DBAdapter)
- func (b *Courier) AddJson(records any, output db.Output)
- func (b *Courier) AddLogFile(logPath string)
- func (b *Courier) AddOutput(outputPath string)
- func (b *Courier) AddOutputList(output []db.Output)
- func (b *Courier) GetOutputByExt() []string
- func (b *Courier) GetOutputPaths() []string
- func (b *Courier) Notification(req request.Request, status *log.Status, duration time.Duration) *log.Status
- func (b *Courier) PersistModel(prefix string, localDir string) *log.Status
- func (b *Courier) PersistToBucket(runStatus *log.Status) *log.Status
- type LongRunNotify
Constants ¶
This section is empty.
Variables ¶
View Source
var IsCourierTest = false
Functions ¶
func GoMailSendMail ¶
func SQSEnqueue ¶
Types ¶
type CompletionMsg ¶
type Component ¶ added in v1.2.0
type Component struct {
// contains filtered or unexported fields
}
func NewComponent ¶ added in v1.2.0
func (*Component) FinishComponent ¶ added in v1.2.0
type Courier ¶
type Courier struct {
Component string
// contains filtered or unexported fields
}
func (*Courier) AddDatabase ¶
func (*Courier) AddLogFile ¶
func (*Courier) AddOutputList ¶ added in v1.2.0
func (*Courier) GetOutputByExt ¶
func (*Courier) GetOutputPaths ¶
func (*Courier) Notification ¶
func (*Courier) PersistModel ¶ added in v1.2.0
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.
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()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.