controller

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 29 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

func UIHandler added in v3.1.1

func UIHandler() goa.MuxHandler

UIHandler to fetch assets from the virtual file system

Types

type ExploreController

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

ExploreController implements the explore resource.

func NewExploreController

func NewExploreController(service *goa.Service, explorer explore.Explorer) *ExploreController

NewExploreController creates a explore controller.

func (*ExploreController) Get

Get runs the get action.

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

NewFilterController creates a filter controller.

func (*FilterController) Specs

Specs runs the specs 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
	// contains filtered or unexported fields
}

IndexController implements the index resource.

func NewIndexController

func NewIndexController(service *goa.Service, issuer, clientID string) *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) Status

func (c *OpmlController) Status(ctx *app.StatusOpmlContext) error

Status runs the status action.

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, outputs *output.Manager) *OutputController

NewOutputController creates a output controller.

func (*OutputController) Create

Create runs the create action.

func (*OutputController) CreateFilter

func (c *OutputController) CreateFilter(ctx *app.CreateFilterOutputContext) error

CreateFilter runs the createFilter action.

func (*OutputController) Delete

Delete runs the delete action.

func (*OutputController) DeleteFilter

func (c *OutputController) DeleteFilter(ctx *app.DeleteFilterOutputContext) error

DeleteFilter runs the deleteFilter 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.

func (*OutputController) UpdateFilter

func (c *OutputController) UpdateFilter(ctx *app.UpdateFilterOutputContext) error

UpdateFilter runs the updateFilter 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, outputs *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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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