Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
KillTask(taskId string, agentId string, gradePeriod int64) error
LaunchTasks([]*mesos.Task) error
ClusterName() string
SubscribeEvent(io.Writer, string) error
FullTaskEventsAndRecords() []*types.CombinedEvents
SendEvent(string, *types.Task) error
ClusterAgents() map[string]*mole.ClusterAgent
ClusterAgent(id string) *mole.ClusterAgent
CloseClusterAgent(id string)
// for debug convenience
Dump() interface{}
Load() map[string]interface{}
}
type HandlerFunc ¶
type HandlerFunc func(w http.ResponseWriter, r *http.Request)
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func NewPrefixRoute ¶ added in v0.2.1
func NewPrefixRoute(method, path string, handler HandlerFunc) *Route
func NewRoute ¶
func NewRoute(method, path string, handler HandlerFunc) *Route
func (*Route) Handler ¶
func (r *Route) Handler() HandlerFunc
type Server ¶
func (*Server) UpdateLeader ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.