controller

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redirect

func Redirect(to string) goa.MuxHandler

Redirect to other path

Types

type FeedController

type FeedController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

FeedController implements the feed resource.

func NewFeedController

func NewFeedController(service *goa.Service, db store.DB, am *aggregator.Manager) *FeedController

NewFeedController creates a feed controller.

func (*FeedController) Create

func (c *FeedController) Create(ctx *app.CreateFeedContext) error

Create creates a new feed

func (*FeedController) Delete

func (c *FeedController) Delete(ctx *app.DeleteFeedContext) error

Delete removes a feed

func (*FeedController) Get

func (c *FeedController) Get(ctx *app.GetFeedContext) error

Get shows a feed

func (*FeedController) List

func (c *FeedController) List(ctx *app.ListFeedContext) error

List shows all feeds

func (*FeedController) Start

func (c *FeedController) Start(ctx *app.StartFeedContext) error

Start starts feed aggregation

func (*FeedController) Stop

func (c *FeedController) Stop(ctx *app.StopFeedContext) error

Stop stops feed aggregation

func (*FeedController) Update

func (c *FeedController) Update(ctx *app.UpdateFeedContext) error

Update updates a new feed

type FilterController

type FilterController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

FilterController implements the filter resource.

func NewFilterController

func NewFilterController(service *goa.Service, db store.DB, cf *filter.Chain) *FilterController

NewFilterController creates a filter controller.

func (*FilterController) Create

Create runs the create action.

func (*FilterController) Delete

Delete runs the delete action.

func (*FilterController) Get

Get runs the get action.

func (*FilterController) List

List runs the list action.

func (*FilterController) Specs

Specs runs the specs action.

func (*FilterController) Update

Update runs the update action.

type HealthController

type HealthController struct {
	*goa.Controller
}

HealthController implements the health resource.

func NewHealthController

func NewHealthController(service *goa.Service) *HealthController

NewHealthController creates a health controller.

func (*HealthController) Get

Get returns the health check status.

type IndexController

type IndexController struct {
	*goa.Controller
}

IndexController implements the index resource.

func NewIndexController

func NewIndexController(service *goa.Service) *IndexController

NewIndexController creates a index controller.

func (*IndexController) Get

Get runs the get action.

type OpmlController

type OpmlController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

OpmlController implements the opml resource.

func NewOpmlController

func NewOpmlController(service *goa.Service, db store.DB) *OpmlController

NewOpmlController creates a opml controller.

func (*OpmlController) Get

func (c *OpmlController) Get(ctx *app.GetOpmlContext) error

Get feeds as OPML file.

func (*OpmlController) Upload

func (c *OpmlController) Upload(ctx *app.UploadOpmlContext) error

Upload OPML file to creates feeds.

type OutputController

type OutputController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

OutputController implements the output resource.

func NewOutputController

func NewOutputController(service *goa.Service, db store.DB, pipe *pipeline.Pipeline) *OutputController

NewOutputController creates a output controller.

func (*OutputController) Create

Create runs the create action.

func (*OutputController) Delete

Delete runs the delete action.

func (*OutputController) Get

Get runs the get action.

func (*OutputController) List

List runs the list action.

func (*OutputController) Specs

Specs runs the specs action.

func (*OutputController) Update

Update runs the update action.

type PshbController

type PshbController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

PshbController implements the pshb resource.

func NewPshbController

func NewPshbController(service *goa.Service, db store.DB, am *aggregator.Manager, pipe *pipeline.Pipeline) *PshbController

NewPshbController creates a pshb controller.

func (*PshbController) Pub

func (c *PshbController) Pub(ctx *app.PubPshbContext) error

Pub is the Hub callback to send topic updates.

func (*PshbController) Sub

func (c *PshbController) Sub(ctx *app.SubPshbContext) error

Sub is the Hub callback to validate the (un)subscription.

type SwaggerController

type SwaggerController struct {
	*goa.Controller
}

SwaggerController implements the swagger resource.

func NewSwaggerController

func NewSwaggerController(service *goa.Service) *SwaggerController

NewSwaggerController creates a swagger controller.

func (*SwaggerController) Get

Get runs the get action.

type VarsController

type VarsController struct {
	*goa.Controller
}

VarsController implements the vars resource.

func NewVarsController

func NewVarsController(service *goa.Service) *VarsController

NewVarsController creates a vars controller.

func (*VarsController) Get

func (c *VarsController) Get(ctx *app.GetVarsContext) error

Get returns all exp vars.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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