controller

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, cf *filter.Chain) *FilterController

NewFilterController creates a filter controller.

func (*FilterController) List

List runs the list 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 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 OMPL 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, om *output.Manager) *OutputController

NewOutputController creates a output controller.

func (*OutputController) List

List runs the list 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, om *output.Manager) *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.

Jump to

Keyboard shortcuts

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