Browse Source

En cours de développement

master
losyme 2 months ago
parent
commit
0f9d45c891
  1. 2
      internal/demo/demo.go
  2. 8
      internal/demo/jw.go

2
internal/demo/demo.go

@ -38,6 +38,8 @@ func New(namespace string, logger *logger.Component, model runner.Model) (*Demo,
handlers := map[string]func(*runner.Job){
"succeeded": demo.succeeded,
"failed": demo.failed,
"panic": demo.panic,
}
for jt, jh := range handlers {

8
internal/demo/jw.go

@ -12,6 +12,14 @@ func (d *Demo) succeeded(_ *runner.Job) {
// nothing to do
}
func (d *Demo) failed(job *runner.Job) {
job.Failed().SetError("it's only a test")
}
func (d *Demo) panic(_ *runner.Job) {
panic("it's only a test")
}
/*
######################################################################################################## @(°_°)@ #######
*/

Loading…
Cancel
Save