1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
woodpecker/server/worker/worker.go
2014-09-28 18:36:24 -07:00

16 lines
259 B
Go

package worker
import (
"code.google.com/p/go.net/context"
)
type Worker interface {
Do(context.Context, *Work)
}
// Do retrieves a worker from the session and uses
// it to get work done.
func Do(c context.Context, w *Work) {
FromContext(c).Do(c, w)
}