Documentation ¶
Index ¶
- func MountExploreController(service *goa.Service, ctrl ExploreController)
- func MountFeedController(service *goa.Service, ctrl FeedController)
- func MountFilterController(service *goa.Service, ctrl FilterController)
- func MountHealthController(service *goa.Service, ctrl HealthController)
- func MountIndexController(service *goa.Service, ctrl IndexController)
- func MountOpmlController(service *goa.Service, ctrl OpmlController)
- func MountOutputController(service *goa.Service, ctrl OutputController)
- func MountPshbController(service *goa.Service, ctrl PshbController)
- func MountSwaggerController(service *goa.Service, ctrl SwaggerController)
- func MountVarsController(service *goa.Service, ctrl VarsController)
- type CreateFeedContext
- type CreateFilterOutputContext
- type CreateFilterOutputPayload
- type CreateOutputContext
- type CreateOutputPayload
- type DeleteFeedContext
- type DeleteFilterOutputContext
- type DeleteOutputContext
- type ExploreController
- type ExploreResponse
- type ExploreResponseCollection
- type FeedController
- type FeedResponse
- type FeedResponseCollection
- type FeedResponseLink
- type FeedResponseLinkCollection
- type FeedResponseTiny
- type FeedResponseTinyCollection
- type FeedsPageResponse
- type FilterController
- type FilterResponse
- type FilterResponseCollection
- type FilterSpecResponse
- type FilterSpecResponseCollection
- type GetExploreContext
- type GetFeedContext
- type GetHealthContext
- type GetIndexContext
- type GetOpmlContext
- type GetOutputContext
- type GetSwaggerContext
- type GetVarsContext
- type HALLink
- type HealthController
- type IndexController
- type Info
- type ListFeedContext
- type ListOutputContext
- type OPMLImportJobResponse
- type OpmlController
- type OutputController
- type OutputResponse
- type OutputResponseCollection
- type OutputSpecResponse
- type OutputSpecResponseCollection
- type PropSpec
- type PropSpecCollection
- type PshbController
- type PubPshbContext
- type SpecsFilterContext
- type SpecsOutputContext
- type StartFeedContext
- type StatusOpmlContext
- type StopFeedContext
- type SubPshbContext
- type SubscriptionPayload
- type SwaggerController
- type UpdateFeedContext
- type UpdateFilterOutputContext
- type UpdateFilterOutputPayload
- type UpdateOutputContext
- type UpdateOutputPayload
- type UploadOpmlContext
- type VarsController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountExploreController ¶
func MountExploreController(service *goa.Service, ctrl ExploreController)
MountExploreController "mounts" a Explore resource controller on the given service.
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 Enable *bool 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 *FeedResponse) error
Created sends a HTTP response with status code 201.
func (*CreateFeedContext) CreatedLink ¶
func (ctx *CreateFeedContext) CreatedLink(r *FeedResponseLink) error
CreatedLink sends a HTTP response with status code 201.
func (*CreateFeedContext) CreatedTiny ¶
func (ctx *CreateFeedContext) CreatedTiny(r *FeedResponseTiny) error
CreatedTiny sends a HTTP response with status code 201.
type CreateFilterOutputContext ¶
type CreateFilterOutputContext struct { context.Context *goa.ResponseData *goa.RequestData ID string Payload *CreateFilterOutputPayload }
CreateFilterOutputContext provides the output createFilter action context.
func NewCreateFilterOutputContext ¶
func NewCreateFilterOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateFilterOutputContext, error)
NewCreateFilterOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller createFilter action.
func (*CreateFilterOutputContext) BadRequest ¶
func (ctx *CreateFilterOutputContext) BadRequest(r error) error
BadRequest sends a HTTP response with status code 400.
func (*CreateFilterOutputContext) Created ¶
func (ctx *CreateFilterOutputContext) Created(r *FilterResponse) error
Created sends a HTTP response with status code 201.
func (*CreateFilterOutputContext) NotFound ¶
func (ctx *CreateFilterOutputContext) NotFound() error
NotFound sends a HTTP response with status code 404.
type CreateFilterOutputPayload ¶
type CreateFilterOutputPayload 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"` }
CreateFilterOutputPayload is the output createFilter action payload.
func (*CreateFilterOutputPayload) Validate ¶
func (payload *CreateFilterOutputPayload) 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 *OutputResponse) 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 DeleteFilterOutputContext ¶
type DeleteFilterOutputContext struct { context.Context *goa.ResponseData *goa.RequestData ID string IDFilter string }
DeleteFilterOutputContext provides the output deleteFilter action context.
func NewDeleteFilterOutputContext ¶
func NewDeleteFilterOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteFilterOutputContext, error)
NewDeleteFilterOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller deleteFilter action.
func (*DeleteFilterOutputContext) BadRequest ¶
func (ctx *DeleteFilterOutputContext) BadRequest(r error) error
BadRequest sends a HTTP response with status code 400.
func (*DeleteFilterOutputContext) NoContent ¶
func (ctx *DeleteFilterOutputContext) NoContent() error
NoContent sends a HTTP response with status code 204.
func (*DeleteFilterOutputContext) NotFound ¶
func (ctx *DeleteFilterOutputContext) NotFound() error
NotFound sends a HTTP response with status code 404.
type DeleteOutputContext ¶
type DeleteOutputContext struct { context.Context *goa.ResponseData *goa.RequestData ID string }
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 ExploreController ¶
type ExploreController interface { goa.Muxer Get(*GetExploreContext) error }
ExploreController is the controller interface for the Explore actions.
type ExploreResponse ¶
type ExploreResponse struct { // Feed description Desc string `form:"desc" json:"desc" yaml:"desc" xml:"desc"` // URL of the feed website HTMLURL string `form:"htmlUrl" json:"htmlUrl" yaml:"htmlUrl" xml:"htmlUrl"` // Feed title 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"` }
The search result (default view)
Identifier: application/vnd.feedpushr.explore.v2+json; view=default
func (*ExploreResponse) Validate ¶
func (mt *ExploreResponse) Validate() (err error)
Validate validates the ExploreResponse media type instance.
type ExploreResponseCollection ¶
type ExploreResponseCollection []*ExploreResponse
ExploreResponseCollection is the media type for an array of ExploreResponse (default view)
Identifier: application/vnd.feedpushr.explore.v2+json; type=collection; view=default
func (ExploreResponseCollection) Validate ¶
func (mt ExploreResponseCollection) Validate() (err error)
Validate validates the ExploreResponseCollection 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 FeedResponse ¶
type FeedResponse 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"` // 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.v2+json; view=default
func (*FeedResponse) Validate ¶
func (mt *FeedResponse) Validate() (err error)
Validate validates the FeedResponse media type instance.
type FeedResponseCollection ¶
type FeedResponseCollection []*FeedResponse
FeedResponseCollection is the media type for an array of FeedResponse (default view)
Identifier: application/vnd.feedpushr.feed.v2+json; type=collection; view=default
func (FeedResponseCollection) Validate ¶
func (mt FeedResponseCollection) Validate() (err error)
Validate validates the FeedResponseCollection media type instance.
type FeedResponseLink ¶
type FeedResponseLink 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.v2+json; view=link
func (*FeedResponseLink) Validate ¶
func (mt *FeedResponseLink) Validate() (err error)
Validate validates the FeedResponseLink media type instance.
type FeedResponseLinkCollection ¶
type FeedResponseLinkCollection []*FeedResponseLink
FeedResponseCollection is the media type for an array of FeedResponse (link view)
Identifier: application/vnd.feedpushr.feed.v2+json; type=collection; view=link
func (FeedResponseLinkCollection) Validate ¶
func (mt FeedResponseLinkCollection) Validate() (err error)
Validate validates the FeedResponseLinkCollection media type instance.
type FeedResponseTiny ¶
type FeedResponseTiny 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.v2+json; view=tiny
func (*FeedResponseTiny) Validate ¶
func (mt *FeedResponseTiny) Validate() (err error)
Validate validates the FeedResponseTiny media type instance.
type FeedResponseTinyCollection ¶
type FeedResponseTinyCollection []*FeedResponseTiny
FeedResponseCollection is the media type for an array of FeedResponse (tiny view)
Identifier: application/vnd.feedpushr.feed.v2+json; type=collection; view=tiny
func (FeedResponseTinyCollection) Validate ¶
func (mt FeedResponseTinyCollection) Validate() (err error)
Validate validates the FeedResponseTinyCollection media type instance.
type FeedsPageResponse ¶
type FeedsPageResponse struct { // Current page number Current int `form:"current" json:"current" yaml:"current" xml:"current"` // List of feeds Data FeedResponseCollection `form:"data" json:"data" yaml:"data" xml:"data"` // Max number of feeds by page Size int `form:"size" json:"size" yaml:"size" xml:"size"` // 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.v2+json; view=default
func (*FeedsPageResponse) Validate ¶
func (mt *FeedsPageResponse) Validate() (err error)
Validate validates the FeedsPageResponse media type instance.
type FilterController ¶
type FilterController interface { goa.Muxer Specs(*SpecsFilterContext) error }
FilterController is the controller interface for the Filter actions.
type FilterResponse ¶
type FilterResponse 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 string `form:"id" json:"id" yaml:"id" xml:"id"` // Name of the filter Name string `form:"name" json:"name" yaml:"name" xml:"name"` // Number of error NbError int `form:"nbError" json:"nbError" yaml:"nbError" xml:"nbError"` // Number of success NbSuccess int `form:"nbSuccess" json:"nbSuccess" yaml:"nbSuccess" xml:"nbSuccess"` // Filter properties Props map[string]interface{} `form:"props" json:"props" yaml:"props" xml:"props"` }
A filter (default view)
Identifier: application/vnd.feedpushr.filter.v2+json; view=default
func (*FilterResponse) Validate ¶
func (mt *FilterResponse) Validate() (err error)
Validate validates the FilterResponse media type instance.
type FilterResponseCollection ¶
type FilterResponseCollection []*FilterResponse
FilterResponseCollection is the media type for an array of FilterResponse (default view)
Identifier: application/vnd.feedpushr.filter.v2+json; type=collection; view=default
func (FilterResponseCollection) Validate ¶
func (mt FilterResponseCollection) Validate() (err error)
Validate validates the FilterResponseCollection media type instance.
type FilterSpecResponse ¶
type FilterSpecResponse 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.v2+json; view=default
func (*FilterSpecResponse) Validate ¶
func (mt *FilterSpecResponse) Validate() (err error)
Validate validates the FilterSpecResponse media type instance.
type FilterSpecResponseCollection ¶
type FilterSpecResponseCollection []*FilterSpecResponse
FilterSpecResponseCollection is the media type for an array of FilterSpecResponse (default view)
Identifier: application/vnd.feedpushr.filter-spec.v2+json; type=collection; view=default
func (FilterSpecResponseCollection) Validate ¶
func (mt FilterSpecResponseCollection) Validate() (err error)
Validate validates the FilterSpecResponseCollection media type instance.
type GetExploreContext ¶
type GetExploreContext struct { context.Context *goa.ResponseData *goa.RequestData Q *string }
GetExploreContext provides the explore get action context.
func NewGetExploreContext ¶
func NewGetExploreContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetExploreContext, error)
NewGetExploreContext parses the incoming request URL and body, performs validations and creates the context used by the explore controller get action.
func (*GetExploreContext) BadRequest ¶
func (ctx *GetExploreContext) BadRequest(r error) error
BadRequest sends a HTTP response with status code 400.
func (*GetExploreContext) OK ¶
func (ctx *GetExploreContext) OK(r ExploreResponseCollection) error
OK sends a HTTP response with status code 200.
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 *FeedResponse) error
OK sends a HTTP response with status code 200.
func (*GetFeedContext) OKLink ¶
func (ctx *GetFeedContext) OKLink(r *FeedResponseLink) error
OKLink sends a HTTP response with status code 200.
func (*GetFeedContext) OKTiny ¶
func (ctx *GetFeedContext) OKTiny(r *FeedResponseTiny) error
OKTiny 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 string }
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 *OutputResponse) 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 ¶
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.v2+json; view=default
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.v2+json; view=default
type ListFeedContext ¶
type ListFeedContext struct { context.Context *goa.ResponseData *goa.RequestData Page int Q *string Size 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 *FeedsPageResponse) error
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 ¶
func (ctx *ListOutputContext) OK(r OutputResponseCollection) error
OK sends a HTTP response with status code 200.
type OPMLImportJobResponse ¶
type OPMLImportJobResponse struct { // ID of the import job ID string `form:"id" json:"id" yaml:"id" xml:"id"` }
OPMLImportJobResponse media type (default view)
Identifier: application/vnd.feedpushr.ompl-import-job.v2+json; view=default
func (*OPMLImportJobResponse) Validate ¶
func (mt *OPMLImportJobResponse) Validate() (err error)
Validate validates the OPMLImportJobResponse media type instance.
type OpmlController ¶
type OpmlController interface { goa.Muxer Get(*GetOpmlContext) error Status(*StatusOpmlContext) error Upload(*UploadOpmlContext) error }
OpmlController is the controller interface for the Opml actions.
type OutputController ¶
type OutputController interface { goa.Muxer Create(*CreateOutputContext) error CreateFilter(*CreateFilterOutputContext) error Delete(*DeleteOutputContext) error DeleteFilter(*DeleteFilterOutputContext) error Get(*GetOutputContext) error List(*ListOutputContext) error Specs(*SpecsOutputContext) error Update(*UpdateOutputContext) error UpdateFilter(*UpdateFilterOutputContext) error }
OutputController is the controller interface for the Output actions.
type OutputResponse ¶
type OutputResponse 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"` // Filters Filters FilterResponseCollection `form:"filters,omitempty" json:"filters,omitempty" yaml:"filters,omitempty" xml:"filters,omitempty"` // ID of the output ID string `form:"id" json:"id" yaml:"id" xml:"id"` // Name of the output channel Name string `form:"name" json:"name" yaml:"name" xml:"name"` // Number of error NbError int `form:"nbError" json:"nbError" yaml:"nbError" xml:"nbError"` // Number of success NbSuccess int `form:"nbSuccess" json:"nbSuccess" yaml:"nbSuccess" xml:"nbSuccess"` // Output channel properties Props map[string]interface{} `form:"props" json:"props" yaml:"props" xml:"props"` }
The output channel (default view)
Identifier: application/vnd.feedpushr.output.v2+json; view=default
func (*OutputResponse) Validate ¶
func (mt *OutputResponse) Validate() (err error)
Validate validates the OutputResponse media type instance.
type OutputResponseCollection ¶
type OutputResponseCollection []*OutputResponse
OutputResponseCollection is the media type for an array of OutputResponse (default view)
Identifier: application/vnd.feedpushr.output.v2+json; type=collection; view=default
func (OutputResponseCollection) Validate ¶
func (mt OutputResponseCollection) Validate() (err error)
Validate validates the OutputResponseCollection media type instance.
type OutputSpecResponse ¶
type OutputSpecResponse 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.v2+json; view=default
func (*OutputSpecResponse) Validate ¶
func (mt *OutputSpecResponse) Validate() (err error)
Validate validates the OutputSpecResponse media type instance.
type OutputSpecResponseCollection ¶
type OutputSpecResponseCollection []*OutputSpecResponse
OutputSpecResponseCollection is the media type for an array of OutputSpecResponse (default view)
Identifier: application/vnd.feedpushr.output-spec.v2+json; type=collection; view=default
func (OutputSpecResponseCollection) Validate ¶
func (mt OutputSpecResponseCollection) Validate() (err error)
Validate validates the OutputSpecResponseCollection 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.v2+json; view=default
type PropSpecCollection ¶
type PropSpecCollection []*PropSpec
PropSpecCollection is the media type for an array of PropSpec (default view)
Identifier: application/vnd.feedpushr.prop-spec.v2+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 ¶
func (ctx *SpecsFilterContext) OK(r FilterSpecResponseCollection) error
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 ¶
func (ctx *SpecsOutputContext) OK(r OutputSpecResponseCollection) error
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 StatusOpmlContext ¶
type StatusOpmlContext struct { context.Context *goa.ResponseData *goa.RequestData ID int }
StatusOpmlContext provides the opml status action context.
func NewStatusOpmlContext ¶
func NewStatusOpmlContext(ctx context.Context, r *http.Request, service *goa.Service) (*StatusOpmlContext, error)
NewStatusOpmlContext parses the incoming request URL and body, performs validations and creates the context used by the opml controller status action.
func (*StatusOpmlContext) NotFound ¶
func (ctx *StatusOpmlContext) NotFound(r error) error
NotFound sends a HTTP response with status code 404.
func (*StatusOpmlContext) OK ¶
func (ctx *StatusOpmlContext) OK(resp []byte) error
OK sends a HTTP response with status code 200.
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 *FeedResponse) error
OK sends a HTTP response with status code 200.
func (*UpdateFeedContext) OKLink ¶
func (ctx *UpdateFeedContext) OKLink(r *FeedResponseLink) error
OKLink sends a HTTP response with status code 200.
func (*UpdateFeedContext) OKTiny ¶
func (ctx *UpdateFeedContext) OKTiny(r *FeedResponseTiny) error
OKTiny sends a HTTP response with status code 200.
type UpdateFilterOutputContext ¶
type UpdateFilterOutputContext struct { context.Context *goa.ResponseData *goa.RequestData ID string IDFilter string Payload *UpdateFilterOutputPayload }
UpdateFilterOutputContext provides the output updateFilter action context.
func NewUpdateFilterOutputContext ¶
func NewUpdateFilterOutputContext(ctx context.Context, r *http.Request, service *goa.Service) (*UpdateFilterOutputContext, error)
NewUpdateFilterOutputContext parses the incoming request URL and body, performs validations and creates the context used by the output controller updateFilter action.
func (*UpdateFilterOutputContext) BadRequest ¶
func (ctx *UpdateFilterOutputContext) BadRequest(r error) error
BadRequest sends a HTTP response with status code 400.
func (*UpdateFilterOutputContext) NotFound ¶
func (ctx *UpdateFilterOutputContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*UpdateFilterOutputContext) OK ¶
func (ctx *UpdateFilterOutputContext) OK(r *FilterResponse) error
OK sends a HTTP response with status code 200.
type UpdateFilterOutputPayload ¶
type UpdateFilterOutputPayload 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"` }
UpdateFilterOutputPayload is the output updateFilter action payload.
type UpdateOutputContext ¶
type UpdateOutputContext struct { context.Context *goa.ResponseData *goa.RequestData ID string 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 *OutputResponse) 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) Accepted ¶
func (ctx *UploadOpmlContext) Accepted(r *OPMLImportJobResponse) error
Accepted sends a HTTP response with status code 202.
func (*UploadOpmlContext) BadRequest ¶
func (ctx *UploadOpmlContext) BadRequest(r error) error
BadRequest sends a HTTP response with status code 400.
type VarsController ¶
type VarsController interface { goa.Muxer Get(*GetVarsContext) error }
VarsController is the controller interface for the Vars actions.