shad-go/distbuild/pkg/dist/coordinator.go

33 lines
547 B
Go
Raw Normal View History

2020-04-05 13:24:48 +00:00
// +build !solution
2020-03-11 22:46:45 +00:00
package dist
import (
"net/http"
2020-03-14 10:24:44 +00:00
"time"
2020-03-11 22:46:45 +00:00
"go.uber.org/zap"
"gitlab.com/slon/shad-go/distbuild/pkg/filecache"
2020-03-28 21:34:09 +00:00
"gitlab.com/slon/shad-go/distbuild/pkg/scheduler"
2020-03-11 22:46:45 +00:00
)
type Coordinator struct {
2020-03-28 21:34:09 +00:00
}
var defaultConfig = scheduler.Config{
CacheTimeout: time.Millisecond * 10,
DepsTimeout: time.Millisecond * 100,
2020-03-11 22:46:45 +00:00
}
func NewCoordinator(
log *zap.Logger,
fileCache *filecache.Cache,
) *Coordinator {
2020-04-05 13:24:48 +00:00
panic("implement me")
2020-03-11 22:46:45 +00:00
}
func (c *Coordinator) ServeHTTP(w http.ResponseWriter, r *http.Request) {
2020-04-05 13:24:48 +00:00
panic("implement me")
2020-03-14 10:24:44 +00:00
}