Documentation ¶
Index ¶
- func MountFeedController(service *goa.Service, ctrl FeedController)
- func MountFilterController(service *goa.Service, ctrl FilterController)
- func MountHealthController(service *goa.Service, ctrl HealthController)
- 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 DeleteFeedContext
- type Feed
- type FeedCollection
- type FeedController
- type FeedLink
- type FeedTiny
- type FeedTinyCollection
- type Filter
- type FilterCollection
- type FilterController
- type GetFeedContext
- type GetHealthContext
- type GetOpmlContext
- type GetSwaggerContext
- type GetVarsContext
- type HealthController
- type ListFeedContext
- type ListFilterContext
- type ListOutputContext
- type OpmlController
- type Output
- type OutputCollection
- type OutputController
- type PshbController
- type PubPshbContext
- type StartFeedContext
- type StopFeedContext
- type SubPshbContext
- type SubscriptionPayload
- type SwaggerController
- type UpdateFeedContext
- type UploadOpmlContext
- type VarsController
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 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() error
Created sends a HTTP response with status code 201.
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 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
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 ¶
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
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
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 Filter ¶
type Filter 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"` // Filter properties Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"` // List of tags Tags []string `form:"tags,omitempty" json:"tags,omitempty" yaml:"tags,omitempty" xml:"tags,omitempty"` }
A filter (default view)
Identifier: application/vnd.feedpushr.filter.v1+json; view=default
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 List(*ListFilterContext) error }
FilterController is the controller interface for the Filter actions.
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 (*GetFeedContext) OKLink ¶
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 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 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 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 HealthController ¶
type HealthController interface { goa.Muxer Get(*GetHealthContext) error }
HealthController is the controller interface for the Health actions.
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 FeedCollection) error
OK sends a HTTP response with status code 200.
func (*ListFeedContext) OKTiny ¶
func (ctx *ListFeedContext) OKTiny(r FeedTinyCollection) error
OKTiny 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 ¶
func (ctx *ListFilterContext) OK(r FilterCollection) 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 OutputCollection) error
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 { // 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"` // Output channel properties Props map[string]interface{} `form:"props,omitempty" json:"props,omitempty" yaml:"props,omitempty" xml:"props,omitempty"` // List of tags Tags []string `form:"tags,omitempty" json:"tags,omitempty" yaml:"tags,omitempty" xml:"tags,omitempty"` }
The output channel (default view)
Identifier: application/vnd.feedpushr.output.v1+json; view=default
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 List(*ListOutputContext) error }
OutputController is the controller interface for the Output actions.
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 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 (*UpdateFeedContext) OKLink ¶
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 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.