app

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountFeedController

func MountFeedController(service *goa.Service, ctrl FeedController)

MountFeedController "mounts" a Feed resource controller on the given service.

func MountFilterController

func MountFilterController(service *goa.Service, ctrl FilterController)

MountFilterController "mounts" a Filter resource controller on the given service.

func MountHealthController

func MountHealthController(service *goa.Service, ctrl HealthController)

MountHealthController "mounts" a Health resource controller on the given service.

func MountIndexController

func MountIndexController(service *goa.Service, ctrl IndexController)

MountIndexController "mounts" a Index resource controller on the given service.

func MountOpmlController

func MountOpmlController(service *goa.Service, ctrl OpmlController)

MountOpmlController "mounts" a Opml resource controller on the given service.

func MountOutputController

func MountOutputController(service *goa.Service, ctrl OutputController)

MountOutputController "mounts" a Output resource controller on the given service.

func MountPshbController

func MountPshbController(service *goa.Service, ctrl PshbController)

MountPshbController "mounts" a Pshb resource controller on the given service.

func MountSwaggerController

func MountSwaggerController(service *goa.Service, ctrl SwaggerController)

MountSwaggerController "mounts" a Swagger resource controller on the given service.

func MountVarsController

func MountVarsController(service *goa.Service, ctrl VarsController)

MountVarsController "mounts" a Vars resource controller on the given service.

Types

type CreateFeedContext

type CreateFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Tags  *string
	Title *string
	URL   string
}

CreateFeedContext provides the feed create action context.

func NewCreateFeedContext

func NewCreateFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateFeedContext, error)

NewCreateFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller create action.

func (*CreateFeedContext) BadRequest

func (ctx *CreateFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*CreateFeedContext) Created

func (ctx *CreateFeedContext) Created(r *Feed) error

Created sends a HTTP response with status code 201.

func (ctx *CreateFeedContext) CreatedLink(r *FeedLink) error

CreatedLink sends a HTTP response with status code 201.

func (*CreateFeedContext) CreatedTiny

func (ctx *CreateFeedContext) CreatedTiny(r *FeedTiny) error

CreatedTiny sends a HTTP response with status code 201.

type CreateFilterContext

type CreateFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *CreateFilterPayload
}

CreateFilterContext provides the filter create action context.

func NewCreateFilterContext

func NewCreateFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateFilterContext, error)

NewCreateFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller create action.

func (*CreateFilterContext) BadRequest

func (ctx *CreateFilterContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*CreateFilterContext) Created

func (ctx *CreateFilterContext) Created(r *Filter) error

Created sends a HTTP response with status code 201.

type CreateFilterPayload

type CreateFilterPayload struct {
	// Alias of the filter
	Alias string `form:"alias" json:"alias" yaml:"alias" xml:"alias"`
	// Conditional expression of the output
	Condition string `form:"condition" json:"condition" yaml:"condition" xml:"condition"`
	// Name of the filter
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Filter properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

CreateFilterPayload is the filter create action payload.

func (*CreateFilterPayload) Validate

func (payload *CreateFilterPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateOutputContext

type CreateOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *CreateOutputPayload
}

CreateOutputContext provides the output create action context.

func NewCreateOutputContext

func NewCreateOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateOutputContext, error)

NewCreateOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller create action.

func (*CreateOutputContext) BadRequest

func (ctx *CreateOutputContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*CreateOutputContext) Created

func (ctx *CreateOutputContext) Created(r *Output) error

Created sends a HTTP response with status code 201.

type CreateOutputPayload

type CreateOutputPayload struct {
	// Alias of the output
	Alias string `form:"alias" json:"alias" yaml:"alias" xml:"alias"`
	// Conditional expression of the output
	Condition string `form:"condition" json:"condition" yaml:"condition" xml:"condition"`
	// Name of the output
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Output properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

CreateOutputPayload is the output create action payload.

func (*CreateOutputPayload) Validate

func (payload *CreateOutputPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type DeleteFeedContext

type DeleteFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID string
}

DeleteFeedContext provides the feed delete action context.

func NewDeleteFeedContext

func NewDeleteFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteFeedContext, error)

NewDeleteFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller delete action.

func (*DeleteFeedContext) BadRequest

func (ctx *DeleteFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*DeleteFeedContext) NoContent

func (ctx *DeleteFeedContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteFeedContext) NotFound

func (ctx *DeleteFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteFilterContext

type DeleteFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID int
}

DeleteFilterContext provides the filter delete action context.

func NewDeleteFilterContext

func NewDeleteFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteFilterContext, error)

NewDeleteFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller delete action.

func (*DeleteFilterContext) BadRequest

func (ctx *DeleteFilterContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*DeleteFilterContext) NoContent

func (ctx *DeleteFilterContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteFilterContext) NotFound

func (ctx *DeleteFilterContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteOutputContext

type DeleteOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID int
}

DeleteOutputContext provides the output delete action context.

func NewDeleteOutputContext

func NewDeleteOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteOutputContext, error)

NewDeleteOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller delete action.

func (*DeleteOutputContext) BadRequest

func (ctx *DeleteOutputContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*DeleteOutputContext) NoContent

func (ctx *DeleteOutputContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteOutputContext) NotFound

func (ctx *DeleteOutputContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type Feed

type Feed struct {
	// Date of creation
	Cdate time.Time `form:"cdate" json:"cdate" yaml:"cdate" xml:"cdate"`
	// Number of consecutive aggregation errors
	ErrorCount *int `form:"errorCount,omitempty" json:"errorCount,omitempty" yaml:"errorCount,omitempty" xml:"errorCount,omitempty"`
	// Last aggregation error
	ErrorMsg *string `form:"errorMsg,omitempty" json:"errorMsg,omitempty" yaml:"errorMsg,omitempty" xml:"errorMsg,omitempty"`
	// URL of the feed website
	HTMLURL *string `form:"htmlUrl,omitempty" json:"htmlUrl,omitempty" yaml:"htmlUrl,omitempty" xml:"htmlUrl,omitempty"`
	// URL of the PubSubHubbud hub
	HubURL *string `form:"hubUrl,omitempty" json:"hubUrl,omitempty" yaml:"hubUrl,omitempty" xml:"hubUrl,omitempty"`
	// ID of feed (MD5 of the xmlUrl)
	ID string `form:"id" json:"id" yaml:"id" xml:"id"`
	// Last aggregation pass
	LastCheck *time.Time `form:"lastCheck,omitempty" json:"lastCheck,omitempty" yaml:"lastCheck,omitempty" xml:"lastCheck,omitempty"`
	// Date of modification
	Mdate time.Time `form:"mdate" json:"mdate" yaml:"mdate" xml:"mdate"`
	// Total number of processed items
	NbProcessedItems *int `` /* 134-byte string literal not displayed */
	// Next aggregation pass
	NextCheck *time.Time `form:"nextCheck,omitempty" json:"nextCheck,omitempty" yaml:"nextCheck,omitempty" xml:"nextCheck,omitempty"`
	// Aggregation status
	Status *string `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty" xml:"status,omitempty"`
	// List of tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" yaml:"tags,omitempty" xml:"tags,omitempty"`
	// Text attribute of the Feed
	Text *string `form:"text,omitempty" json:"text,omitempty" yaml:"text,omitempty" xml:"text,omitempty"`
	// Title of the Feed
	Title string `form:"title" json:"title" yaml:"title" xml:"title"`
	// URL of the XML feed
	XMLURL string `form:"xmlUrl" json:"xmlUrl" yaml:"xmlUrl" xml:"xmlUrl"`
}

A RSS feed (default view)

Identifier: application/vnd.feedpushr.feed.v1+json; view=default

func (*Feed) Validate

func (mt *Feed) Validate() (err error)

Validate validates the Feed media type instance.

type FeedCollection

type FeedCollection []*Feed

FeedCollection is the media type for an array of Feed (default view)

Identifier: application/vnd.feedpushr.feed.v1+json; type=collection; view=default

func (FeedCollection) Validate

func (mt FeedCollection) Validate() (err error)

Validate validates the FeedCollection media type instance.

type FeedController

type FeedController interface {
	goa.Muxer
	Create(*CreateFeedContext) error
	Delete(*DeleteFeedContext) error
	Get(*GetFeedContext) error
	List(*ListFeedContext) error
	Start(*StartFeedContext) error
	Stop(*StopFeedContext) error
	Update(*UpdateFeedContext) error
}

FeedController is the controller interface for the Feed actions.

type FeedLink struct {
	// ID of feed (MD5 of the xmlUrl)
	ID string `form:"id" json:"id" yaml:"id" xml:"id"`
	// URL of the XML feed
	XMLURL string `form:"xmlUrl" json:"xmlUrl" yaml:"xmlUrl" xml:"xmlUrl"`
}

A RSS feed (link view)

Identifier: application/vnd.feedpushr.feed.v1+json; view=link

func (*FeedLink) Validate

func (mt *FeedLink) Validate() (err error)

Validate validates the FeedLink media type instance.

type FeedLinkCollection

type FeedLinkCollection []*FeedLink

FeedCollection is the media type for an array of Feed (link view)

Identifier: application/vnd.feedpushr.feed.v1+json; type=collection; view=link

func (FeedLinkCollection) Validate

func (mt FeedLinkCollection) Validate() (err error)

Validate validates the FeedLinkCollection media type instance.

type FeedTiny

type FeedTiny struct {
	// Date of creation
	Cdate time.Time `form:"cdate" json:"cdate" yaml:"cdate" xml:"cdate"`
	// ID of feed (MD5 of the xmlUrl)
	ID string `form:"id" json:"id" yaml:"id" xml:"id"`
	// List of tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" yaml:"tags,omitempty" xml:"tags,omitempty"`
	// Title of the Feed
	Title string `form:"title" json:"title" yaml:"title" xml:"title"`
	// URL of the XML feed
	XMLURL string `form:"xmlUrl" json:"xmlUrl" yaml:"xmlUrl" xml:"xmlUrl"`
}

A RSS feed (tiny view)

Identifier: application/vnd.feedpushr.feed.v1+json; view=tiny

func (*FeedTiny) Validate

func (mt *FeedTiny) Validate() (err error)

Validate validates the FeedTiny media type instance.

type FeedTinyCollection

type FeedTinyCollection []*FeedTiny

FeedCollection is the media type for an array of Feed (tiny view)

Identifier: application/vnd.feedpushr.feed.v1+json; type=collection; view=tiny

func (FeedTinyCollection) Validate

func (mt FeedTinyCollection) Validate() (err error)

Validate validates the FeedTinyCollection media type instance.

type FeedsPage

type FeedsPage struct {
	// Current page number
	Current int `form:"current" json:"current" yaml:"current" xml:"current"`
	// List of feeds
	Data FeedCollection `form:"data" json:"data" yaml:"data" xml:"data"`
	// Max number of feeds by page
	Limit int `form:"limit" json:"limit" yaml:"limit" xml:"limit"`
	// Total number of feeds
	Total int `form:"total" json:"total" yaml:"total" xml:"total"`
}

A pagignated list of feeds (default view)

Identifier: application/vnd.feedpushr.feeds-page.v1+json; view=default

func (*FeedsPage) Validate

func (mt *FeedsPage) Validate() (err error)

Validate validates the FeedsPage media type instance.

type Filter

type Filter struct {
	// Alias of the filter
	Alias string `form:"alias" json:"alias" yaml:"alias" xml:"alias"`
	// Conditional expression of the filter
	Condition string `form:"condition" json:"condition" yaml:"condition" xml:"condition"`
	// Description of the filter
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Status
	Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"`
	// ID of the filter
	ID int `form:"id" json:"id" yaml:"id" xml:"id"`
	// Name of the filter
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Filter properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

A filter (default view)

Identifier: application/vnd.feedpushr.filter.v1+json; view=default

func (*Filter) Validate

func (mt *Filter) Validate() (err error)

Validate validates the Filter media type instance.

type FilterCollection

type FilterCollection []*Filter

FilterCollection is the media type for an array of Filter (default view)

Identifier: application/vnd.feedpushr.filter.v1+json; type=collection; view=default

func (FilterCollection) Validate

func (mt FilterCollection) Validate() (err error)

Validate validates the FilterCollection media type instance.

type FilterController

type FilterController interface {
	goa.Muxer
	Create(*CreateFilterContext) error
	Delete(*DeleteFilterContext) error
	Get(*GetFilterContext) error
	List(*ListFilterContext) error
	Specs(*SpecsFilterContext) error
	Update(*UpdateFilterContext) error
}

FilterController is the controller interface for the Filter actions.

type FilterSpec

type FilterSpec struct {
	// Description of the filter
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Name of the filter
	Name  string             `form:"name" json:"name" yaml:"name" xml:"name"`
	Props PropSpecCollection `form:"props" json:"props" yaml:"props" xml:"props"`
}

The filter specification (default view)

Identifier: application/vnd.feedpushr.filter-spec.v1+json; view=default

func (*FilterSpec) Validate

func (mt *FilterSpec) Validate() (err error)

Validate validates the FilterSpec media type instance.

type FilterSpecCollection

type FilterSpecCollection []*FilterSpec

FilterSpecCollection is the media type for an array of FilterSpec (default view)

Identifier: application/vnd.feedpushr.filter-spec.v1+json; type=collection; view=default

func (FilterSpecCollection) Validate

func (mt FilterSpecCollection) Validate() (err error)

Validate validates the FilterSpecCollection media type instance.

type GetFeedContext

type GetFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID string
}

GetFeedContext provides the feed get action context.

func NewGetFeedContext

func NewGetFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetFeedContext, error)

NewGetFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller get action.

func (*GetFeedContext) BadRequest

func (ctx *GetFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetFeedContext) NotFound

func (ctx *GetFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetFeedContext) OK

func (ctx *GetFeedContext) OK(r *Feed) error

OK sends a HTTP response with status code 200.

func (ctx *GetFeedContext) OKLink(r *FeedLink) error

OKLink sends a HTTP response with status code 200.

func (*GetFeedContext) OKTiny

func (ctx *GetFeedContext) OKTiny(r *FeedTiny) error

OKTiny sends a HTTP response with status code 200.

type GetFilterContext

type GetFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID int
}

GetFilterContext provides the filter get action context.

func NewGetFilterContext

func NewGetFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetFilterContext, error)

NewGetFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller get action.

func (*GetFilterContext) BadRequest

func (ctx *GetFilterContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetFilterContext) NotFound

func (ctx *GetFilterContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetFilterContext) OK

func (ctx *GetFilterContext) OK(r *Filter) error

OK sends a HTTP response with status code 200.

type GetHealthContext

type GetHealthContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetHealthContext provides the health get action context.

func NewGetHealthContext

func NewGetHealthContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetHealthContext, error)

NewGetHealthContext parses the incoming request URL and body, performs validations and creates the context used by the health controller get action.

func (*GetHealthContext) OK

func (ctx *GetHealthContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetIndexContext

type GetIndexContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetIndexContext provides the index get action context.

func NewGetIndexContext

func NewGetIndexContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetIndexContext, error)

NewGetIndexContext parses the incoming request URL and body, performs validations and creates the context used by the index controller get action.

func (*GetIndexContext) OK

func (ctx *GetIndexContext) OK(r *Info) error

OK sends a HTTP response with status code 200.

type GetOpmlContext

type GetOpmlContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetOpmlContext provides the opml get action context.

func NewGetOpmlContext

func NewGetOpmlContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetOpmlContext, error)

NewGetOpmlContext parses the incoming request URL and body, performs validations and creates the context used by the opml controller get action.

func (*GetOpmlContext) BadRequest

func (ctx *GetOpmlContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetOpmlContext) OK

func (ctx *GetOpmlContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetOutputContext

type GetOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID int
}

GetOutputContext provides the output get action context.

func NewGetOutputContext

func NewGetOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetOutputContext, error)

NewGetOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller get action.

func (*GetOutputContext) BadRequest

func (ctx *GetOutputContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetOutputContext) NotFound

func (ctx *GetOutputContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetOutputContext) OK

func (ctx *GetOutputContext) OK(r *Output) error

OK sends a HTTP response with status code 200.

type GetSwaggerContext

type GetSwaggerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetSwaggerContext provides the swagger get action context.

func NewGetSwaggerContext

func NewGetSwaggerContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetSwaggerContext, error)

NewGetSwaggerContext parses the incoming request URL and body, performs validations and creates the context used by the swagger controller get action.

func (*GetSwaggerContext) OK

func (ctx *GetSwaggerContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetVarsContext

type GetVarsContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetVarsContext provides the vars get action context.

func NewGetVarsContext

func NewGetVarsContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetVarsContext, error)

NewGetVarsContext parses the incoming request URL and body, performs validations and creates the context used by the vars controller get action.

func (*GetVarsContext) OK

func (ctx *GetVarsContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type HALLink struct {
	// Link's destination
	Href string `form:"href" json:"href" yaml:"href" xml:"href"`
}

HAL link (default view)

Identifier: application/vnd.feedpushr.hal-links.v1+json; view=default

func (*HALLink) Validate

func (mt *HALLink) Validate() (err error)

Validate validates the HALLink media type instance.

type HealthController

type HealthController interface {
	goa.Muxer
	Get(*GetHealthContext) error
}

HealthController is the controller interface for the Health actions.

type IndexController

type IndexController interface {
	goa.Muxer
	Get(*GetIndexContext) error
}

IndexController is the controller interface for the Index actions.

type Info

type Info struct {
	// HAL links
	Links map[string]*HALLink `form:"_links" json:"_links" yaml:"_links" xml:"_links"`
	// Service description
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Service name
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Service version
	Version string `form:"version" json:"version" yaml:"version" xml:"version"`
}

API info (default view)

Identifier: application/vnd.feedpushr.info.v1+json; view=default

func (*Info) Validate

func (mt *Info) Validate() (err error)

Validate validates the Info media type instance.

type ListFeedContext

type ListFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Limit int
	Page  int
}

ListFeedContext provides the feed list action context.

func NewListFeedContext

func NewListFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListFeedContext, error)

NewListFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller list action.

func (*ListFeedContext) BadRequest

func (ctx *ListFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ListFeedContext) NotFound

func (ctx *ListFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListFeedContext) OK

func (ctx *ListFeedContext) OK(r *FeedsPage) error

OK sends a HTTP response with status code 200.

type ListFilterContext

type ListFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ListFilterContext provides the filter list action context.

func NewListFilterContext

func NewListFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListFilterContext, error)

NewListFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller list action.

func (*ListFilterContext) OK

OK sends a HTTP response with status code 200.

type ListOutputContext

type ListOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ListOutputContext provides the output list action context.

func NewListOutputContext

func NewListOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*ListOutputContext, error)

NewListOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller list action.

func (*ListOutputContext) OK

OK sends a HTTP response with status code 200.

type OpmlController

type OpmlController interface {
	goa.Muxer
	Get(*GetOpmlContext) error
	Upload(*UploadOpmlContext) error
}

OpmlController is the controller interface for the Opml actions.

type Output

type Output struct {
	// Alias of the output channel
	Alias string `form:"alias" json:"alias" yaml:"alias" xml:"alias"`
	// Conditional expression of the filter
	Condition string `form:"condition" json:"condition" yaml:"condition" xml:"condition"`
	// Description of the output channel
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Status
	Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"`
	// ID of the output
	ID int `form:"id" json:"id" yaml:"id" xml:"id"`
	// Name of the output channel
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Output channel properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

The output channel (default view)

Identifier: application/vnd.feedpushr.output.v1+json; view=default

func (*Output) Validate

func (mt *Output) Validate() (err error)

Validate validates the Output media type instance.

type OutputCollection

type OutputCollection []*Output

OutputCollection is the media type for an array of Output (default view)

Identifier: application/vnd.feedpushr.output.v1+json; type=collection; view=default

func (OutputCollection) Validate

func (mt OutputCollection) Validate() (err error)

Validate validates the OutputCollection media type instance.

type OutputController

type OutputController interface {
	goa.Muxer
	Create(*CreateOutputContext) error
	Delete(*DeleteOutputContext) error
	Get(*GetOutputContext) error
	List(*ListOutputContext) error
	Specs(*SpecsOutputContext) error
	Update(*UpdateOutputContext) error
}

OutputController is the controller interface for the Output actions.

type OutputSpec

type OutputSpec struct {
	// Description of the output channel
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Name of the output channel
	Name  string             `form:"name" json:"name" yaml:"name" xml:"name"`
	Props PropSpecCollection `form:"props" json:"props" yaml:"props" xml:"props"`
}

The output channel specification (default view)

Identifier: application/vnd.feedpushr.output-spec.v1+json; view=default

func (*OutputSpec) Validate

func (mt *OutputSpec) Validate() (err error)

Validate validates the OutputSpec media type instance.

type OutputSpecCollection

type OutputSpecCollection []*OutputSpec

OutputSpecCollection is the media type for an array of OutputSpec (default view)

Identifier: application/vnd.feedpushr.output-spec.v1+json; type=collection; view=default

func (OutputSpecCollection) Validate

func (mt OutputSpecCollection) Validate() (err error)

Validate validates the OutputSpecCollection media type instance.

type PropSpec

type PropSpec struct {
	// Description of the output channel
	Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"`
	// Name of the property
	Name string `form:"name" json:"name" yaml:"name" xml:"name"`
	// Property options
	Options map[string]string `form:"options,omitempty" json:"options,omitempty" yaml:"options,omitempty" xml:"options,omitempty"`
	// Property type ('text', 'url', ...)
	Type string `form:"type" json:"type" yaml:"type" xml:"type"`
}

The specification of a property (default view)

Identifier: application/vnd.feedpushr.prop-spec.v1+json; view=default

func (*PropSpec) Validate

func (mt *PropSpec) Validate() (err error)

Validate validates the PropSpec media type instance.

type PropSpecCollection

type PropSpecCollection []*PropSpec

PropSpecCollection is the media type for an array of PropSpec (default view)

Identifier: application/vnd.feedpushr.prop-spec.v1+json; type=collection; view=default

func (PropSpecCollection) Validate

func (mt PropSpecCollection) Validate() (err error)

Validate validates the PropSpecCollection media type instance.

type PshbController

type PshbController interface {
	goa.Muxer
	Pub(*PubPshbContext) error
	Sub(*SubPshbContext) error
}

PshbController is the controller interface for the Pshb actions.

type PubPshbContext

type PubPshbContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

PubPshbContext provides the pshb pub action context.

func NewPubPshbContext

func NewPubPshbContext(ctx context.Context, r *http.Request, service *goa.Service) (*PubPshbContext, error)

NewPubPshbContext parses the incoming request URL and body, performs validations and creates the context used by the pshb controller pub action.

func (*PubPshbContext) BadRequest

func (ctx *PubPshbContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*PubPshbContext) OK

func (ctx *PubPshbContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type SpecsFilterContext

type SpecsFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

SpecsFilterContext provides the filter specs action context.

func NewSpecsFilterContext

func NewSpecsFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*SpecsFilterContext, error)

NewSpecsFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller specs action.

func (*SpecsFilterContext) OK

OK sends a HTTP response with status code 200.

type SpecsOutputContext

type SpecsOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

SpecsOutputContext provides the output specs action context.

func NewSpecsOutputContext

func NewSpecsOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*SpecsOutputContext, error)

NewSpecsOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller specs action.

func (*SpecsOutputContext) OK

OK sends a HTTP response with status code 200.

type StartFeedContext

type StartFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID string
}

StartFeedContext provides the feed start action context.

func NewStartFeedContext

func NewStartFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*StartFeedContext, error)

NewStartFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller start action.

func (*StartFeedContext) Accepted

func (ctx *StartFeedContext) Accepted() error

Accepted sends a HTTP response with status code 202.

func (*StartFeedContext) BadRequest

func (ctx *StartFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*StartFeedContext) NotFound

func (ctx *StartFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type StopFeedContext

type StopFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID string
}

StopFeedContext provides the feed stop action context.

func NewStopFeedContext

func NewStopFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*StopFeedContext, error)

NewStopFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller stop action.

func (*StopFeedContext) Accepted

func (ctx *StopFeedContext) Accepted() error

Accepted sends a HTTP response with status code 202.

func (*StopFeedContext) BadRequest

func (ctx *StopFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*StopFeedContext) NotFound

func (ctx *StopFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type SubPshbContext

type SubPshbContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	HubChallenge    string
	HubLeaseSeconds *int
	HubMode         string
	HubTopic        string
}

SubPshbContext provides the pshb sub action context.

func NewSubPshbContext

func NewSubPshbContext(ctx context.Context, r *http.Request, service *goa.Service) (*SubPshbContext, error)

NewSubPshbContext parses the incoming request URL and body, performs validations and creates the context used by the pshb controller sub action.

func (*SubPshbContext) BadRequest

func (ctx *SubPshbContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*SubPshbContext) OK

func (ctx *SubPshbContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type SubscriptionPayload

type SubscriptionPayload struct {
	Alias *string `form:"alias,omitempty" json:"alias,omitempty" yaml:"alias,omitempty" xml:"alias,omitempty"`
	URI   *string `form:"uri,omitempty" json:"uri,omitempty" yaml:"uri,omitempty" xml:"uri,omitempty"`
}

SubscriptionPayload user type.

func (*SubscriptionPayload) Validate

func (ut *SubscriptionPayload) Validate() (err error)

Validate validates the SubscriptionPayload type instance.

type SwaggerController

type SwaggerController interface {
	goa.Muxer
	Get(*GetSwaggerContext) error
}

SwaggerController is the controller interface for the Swagger actions.

type UpdateFeedContext

type UpdateFeedContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID    string
	Tags  *string
	Title *string
}

UpdateFeedContext provides the feed update action context.

func NewUpdateFeedContext

func NewUpdateFeedContext(ctx context.Context, r *http.Request, service *goa.Service) (*UpdateFeedContext, error)

NewUpdateFeedContext parses the incoming request URL and body, performs validations and creates the context used by the feed controller update action.

func (*UpdateFeedContext) BadRequest

func (ctx *UpdateFeedContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*UpdateFeedContext) NotFound

func (ctx *UpdateFeedContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*UpdateFeedContext) OK

func (ctx *UpdateFeedContext) OK(r *Feed) error

OK sends a HTTP response with status code 200.

func (ctx *UpdateFeedContext) OKLink(r *FeedLink) error

OKLink sends a HTTP response with status code 200.

func (*UpdateFeedContext) OKTiny

func (ctx *UpdateFeedContext) OKTiny(r *FeedTiny) error

OKTiny sends a HTTP response with status code 200.

type UpdateFilterContext

type UpdateFilterContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID      int
	Payload *UpdateFilterPayload
}

UpdateFilterContext provides the filter update action context.

func NewUpdateFilterContext

func NewUpdateFilterContext(ctx context.Context, r *http.Request, service *goa.Service) (*UpdateFilterContext, error)

NewUpdateFilterContext parses the incoming request URL and body, performs validations and creates the context used by the filter controller update action.

func (*UpdateFilterContext) BadRequest

func (ctx *UpdateFilterContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*UpdateFilterContext) NotFound

func (ctx *UpdateFilterContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*UpdateFilterContext) OK

func (ctx *UpdateFilterContext) OK(r *Filter) error

OK sends a HTTP response with status code 200.

type UpdateFilterPayload

type UpdateFilterPayload struct {
	// Alias of the filter
	Alias *string `form:"alias,omitempty" json:"alias,omitempty" yaml:"alias,omitempty" xml:"alias,omitempty"`
	// Conditional expression of the output
	Condition *string `form:"condition,omitempty" json:"condition,omitempty" yaml:"condition,omitempty" xml:"condition,omitempty"`
	// Filter status
	Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"`
	// Filter properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

UpdateFilterPayload is the filter update action payload.

type UpdateOutputContext

type UpdateOutputContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ID      int
	Payload *UpdateOutputPayload
}

UpdateOutputContext provides the output update action context.

func NewUpdateOutputContext

func NewUpdateOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*UpdateOutputContext, error)

NewUpdateOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller update action.

func (*UpdateOutputContext) BadRequest

func (ctx *UpdateOutputContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*UpdateOutputContext) NotFound

func (ctx *UpdateOutputContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*UpdateOutputContext) OK

func (ctx *UpdateOutputContext) OK(r *Output) error

OK sends a HTTP response with status code 200.

type UpdateOutputPayload

type UpdateOutputPayload struct {
	// Alias of the output
	Alias *string `form:"alias,omitempty" json:"alias,omitempty" yaml:"alias,omitempty" xml:"alias,omitempty"`
	// Conditional expression of the output
	Condition *string `form:"condition,omitempty" json:"condition,omitempty" yaml:"condition,omitempty" xml:"condition,omitempty"`
	// Output status
	Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"`
	// Output properties
	Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"`
}

UpdateOutputPayload is the output update action payload.

type UploadOpmlContext

type UploadOpmlContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

UploadOpmlContext provides the opml upload action context.

func NewUploadOpmlContext

func NewUploadOpmlContext(ctx context.Context, r *http.Request, service *goa.Service) (*UploadOpmlContext, error)

NewUploadOpmlContext parses the incoming request URL and body, performs validations and creates the context used by the opml controller upload action.

func (*UploadOpmlContext) BadRequest

func (ctx *UploadOpmlContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*UploadOpmlContext) Created

func (ctx *UploadOpmlContext) Created() error

Created sends a HTTP response with status code 201.

type VarsController

type VarsController interface {
	goa.Muxer
	Get(*GetVarsContext) error
}

VarsController is the controller interface for the Vars actions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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