Documentation ¶
Index ¶
- type IntMetric
- type Server
- func (s *Server) DeleteWorker(w http.ResponseWriter, r *http.Request)
- func (s *Server) HeartbeatWorker(w http.ResponseWriter, r *http.Request)
- func (s *Server) LandWorker(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListWorkers(teamDB db.TeamDB, team dbng.Team) http.Handler
- func (s *Server) PruneWorker(w http.ResponseWriter, r *http.Request)
- func (s *Server) RegisterWorker(w http.ResponseWriter, r *http.Request)
- func (s *Server) RetireWorker(w http.ResponseWriter, r *http.Request)
- type WorkerDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( logger lager.Logger, db WorkerDB, teamDBFactory db.TeamDBFactory, dbTeamFactory dbng.TeamFactory, dbWorkerFactory dbng.WorkerFactory, ) *Server
func (*Server) DeleteWorker ¶
func (s *Server) DeleteWorker(w http.ResponseWriter, r *http.Request)
func (*Server) HeartbeatWorker ¶
func (s *Server) HeartbeatWorker(w http.ResponseWriter, r *http.Request)
func (*Server) LandWorker ¶
func (s *Server) LandWorker(w http.ResponseWriter, r *http.Request)
func (*Server) ListWorkers ¶
func (*Server) PruneWorker ¶
func (s *Server) PruneWorker(w http.ResponseWriter, r *http.Request)
func (*Server) RegisterWorker ¶
func (s *Server) RegisterWorker(w http.ResponseWriter, r *http.Request)
func (*Server) RetireWorker ¶
func (s *Server) RetireWorker(w http.ResponseWriter, r *http.Request)
type WorkerDB ¶
type WorkerDB interface { SaveWorker(db.WorkerInfo, time.Duration) (db.SavedWorker, error) Workers() ([]db.SavedWorker, error) }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.