shad-go/distbuild/pkg/worker/worker.go

37 lines
631 B
Go
Raw Normal View History

2022-02-10 22:06:57 +00:00
//go:build !solution
2020-04-05 13:24:48 +00:00
// +build !solution
2020-03-10 12:08:59 +00:00
package worker
import (
"context"
2020-03-11 22:46:45 +00:00
"net/http"
2020-03-10 12:08:59 +00:00
2020-03-11 22:46:45 +00:00
"go.uber.org/zap"
2020-03-29 16:03:07 +00:00
"gitlab.com/slon/shad-go/distbuild/pkg/api"
2020-03-10 12:08:59 +00:00
"gitlab.com/slon/shad-go/distbuild/pkg/artifact"
"gitlab.com/slon/shad-go/distbuild/pkg/filecache"
)
type Worker struct {
}
2020-03-11 22:46:45 +00:00
func New(
2020-03-29 16:03:07 +00:00
workerID api.WorkerID,
2020-03-11 22:46:45 +00:00
coordinatorEndpoint string,
log *zap.Logger,
fileCache *filecache.Cache,
artifacts *artifact.Cache,
) *Worker {
2020-04-05 13:24:48 +00:00
panic("implement me")
2020-03-11 22:46:45 +00:00
}
func (w *Worker) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
2020-04-05 13:24:48 +00:00
panic("implement me")
2020-03-10 12:08:59 +00:00
}
func (w *Worker) Run(ctx context.Context) error {
2020-04-05 13:24:48 +00:00
panic("implement me")
2020-03-10 12:08:59 +00:00
}