controllers

package
v0.0.0-...-f620936 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	HomeController               HomeController
	IncidentsController          IncidentsController
	ScheduledIncidentsController ScheduledIncidentsController
	TasksController              TasksController
}

func NewFactory

func NewFactory(r FactoryRepos, logger boshlog.Logger) (Factory, error)

type FactoryRepos

type FactoryRepos interface {
	IncidentsRepo() incident.Repo
	ScheduledIncidentsRepo() scheduledinc.Repo
	TasksRepo() tasks.Repo
}

type HomeController

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

func NewHomeController

func NewHomeController(
	incidentsRepo incident.Repo,
	scheduledIncidentsRepo scheduledinc.Repo,
	logger boshlog.Logger,
) HomeController

func (HomeController) Home

func (c HomeController) Home(r martrend.Render)

type HomePage

type HomePage struct {
	Incidents          incident.IncidentsResp
	ScheduledIncidents scheduledinc.Responses
}

type IncidentPage

type IncidentPage struct {
	Incident incident.Response
}

type IncidentsController

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

func NewIncidentsController

func NewIncidentsController(
	incidentsRepo incident.Repo,
	logger boshlog.Logger,
) IncidentsController

func (IncidentsController) APICreate

func (c IncidentsController) APICreate(req *http.Request, r martrend.Render)

func (IncidentsController) APIIndex

func (c IncidentsController) APIIndex(req *http.Request, r martrend.Render)

func (IncidentsController) APIRead

func (c IncidentsController) APIRead(req *http.Request, r martrend.Render, params mart.Params)

func (IncidentsController) Index

func (c IncidentsController) Index(req *http.Request, r martrend.Render)

func (IncidentsController) Read

func (c IncidentsController) Read(req *http.Request, r martrend.Render, params mart.Params)

type IncidentsPage

type IncidentsPage struct {
	Incidents []incident.Response
}

type ScheduledIncidentPage

type ScheduledIncidentPage struct {
	ScheduledIncident scheduledinc.Response
}

type ScheduledIncidentsController

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

func NewScheduledIncidentsController

func NewScheduledIncidentsController(
	repo scheduledinc.Repo,
	logger boshlog.Logger,
) ScheduledIncidentsController

func (ScheduledIncidentsController) APICreate

func (ScheduledIncidentsController) APIDelete

func (c ScheduledIncidentsController) APIDelete(r martrend.Render, params mart.Params)

func (ScheduledIncidentsController) APIIndex

func (ScheduledIncidentsController) APIRead

func (ScheduledIncidentsController) Index

func (ScheduledIncidentsController) Read

type ScheduledIncidentsPage

type ScheduledIncidentsPage struct {
	ScheduledIncidents []scheduledinc.Response
}

type TasksController

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

func NewTasksController

func NewTasksController(
	tasksRepo tasks.Repo,
	logger boshlog.Logger,
) TasksController

func (TasksController) APIConsume

func (c TasksController) APIConsume(req *http.Request, r martrend.Render, params mart.Params)

func (TasksController) APIReadState

func (c TasksController) APIReadState(req *http.Request, r martrend.Render, params mart.Params)

func (TasksController) APIUpdate

func (c TasksController) APIUpdate(req *http.Request, r martrend.Render, params mart.Params)

func (TasksController) APIUpdateState

func (c TasksController) APIUpdateState(req *http.Request, r martrend.Render, params mart.Params)

Jump to

Keyboard shortcuts

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