rest

package
v1.0.1-10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoppedError = errors.New("Listener stopped")

Functions

This section is empty.

Types

type RestServer

type RestServer struct {
	Scheduler *service.SchedulerService
	// contains filtered or unexported fields
}

RestServer Holds stuff shared by all the rest services

func (RestServer) Accept

func (ln RestServer) Accept() (c net.Conn, err error)

func (*RestServer) Start

func (r *RestServer) Start() error

func (*RestServer) Stop

func (r *RestServer) Stop()

type TaskRouter

type TaskRouter struct {
	// contains filtered or unexported fields
}

func NewTaskRouter

func NewTaskRouter() *TaskRouter

func (*TaskRouter) CancelTask

func (tr *TaskRouter) CancelTask(params martini.Params, r *http.Request, w http.ResponseWriter)

func (*TaskRouter) CreateTask

func (tr *TaskRouter) CreateTask(r *http.Request, w http.ResponseWriter)

func (*TaskRouter) GetAllTasks

func (tr *TaskRouter) GetAllTasks(r *http.Request, w http.ResponseWriter)

func (*TaskRouter) GetTask

func (tr *TaskRouter) GetTask(params martini.Params, r *http.Request, w http.ResponseWriter)

func (*TaskRouter) Register

func (tr *TaskRouter) Register(r martini.Router)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL