2022-02-10 22:06:57 +00:00
|
|
|
//go:build !solution
|
2020-04-05 13:24:48 +00:00
|
|
|
|
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"
|
|
|
|
|
2023-10-03 17:25:41 +00:00
|
|
|
"gitlab.com/manytask/itmo-go/public/distbuild/pkg/api"
|
|
|
|
"gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact"
|
|
|
|
"gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache"
|
2020-03-10 12:08:59 +00:00
|
|
|
)
|
|
|
|
|
2023-10-02 19:32:41 +00:00
|
|
|
type Worker struct{}
|
2020-03-10 12:08:59 +00:00
|
|
|
|
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
|
|
|
}
|