32 lines
548 B
Go
32 lines
548 B
Go
//go:build !solution
|
|
|
|
package dist
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
|
|
"go.uber.org/zap"
|
|
|
|
"gitlab.com/slon/shad-go/distbuild/pkg/filecache"
|
|
"gitlab.com/slon/shad-go/distbuild/pkg/scheduler"
|
|
)
|
|
|
|
type Coordinator struct {
|
|
}
|
|
|
|
var defaultConfig = scheduler.Config{
|
|
CacheTimeout: time.Millisecond * 10,
|
|
DepsTimeout: time.Millisecond * 100,
|
|
}
|
|
|
|
func NewCoordinator(
|
|
log *zap.Logger,
|
|
fileCache *filecache.Cache,
|
|
) *Coordinator {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (c *Coordinator) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
panic("implement me")
|
|
}
|