Documentation
¶
Index ¶
- func Init()
- type BundleDataSource
- func (ds *BundleDataSource) GetEntityType() reflect.Type
- func (ds *BundleDataSource) GetName() string
- func (ds *BundleDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *BundleDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *BundleDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *BundleDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *BundleDataSource) IsSlugMatch(slug string) bool
- func (ds *BundleDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type BundleIndexDataSource
- func (ds *BundleIndexDataSource) GetEntityType() reflect.Type
- func (ds *BundleIndexDataSource) GetName() string
- func (ds *BundleIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *BundleIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *BundleIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *BundleIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *BundleIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) int
- type CollectionDataSource
- func (ds *CollectionDataSource) GetEntityType() reflect.Type
- func (ds *CollectionDataSource) GetName() string
- func (ds *CollectionDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *CollectionDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *CollectionDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *CollectionDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *CollectionDataSource) IsSlugMatch(slug string) bool
- func (ds *CollectionDataSource) IsValid(route *models.Route) error
- func (ds *CollectionDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type CollectionIndexDataSource
- func (ds *CollectionIndexDataSource) GetEntityType() reflect.Type
- func (ds *CollectionIndexDataSource) GetName() string
- func (ds *CollectionIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *CollectionIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *CollectionIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *CollectionIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *CollectionIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type FilmDataSource
- func (ds *FilmDataSource) GetEntityType() reflect.Type
- func (ds *FilmDataSource) GetName() string
- func (ds *FilmDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *FilmDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *FilmDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *FilmDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *FilmDataSource) IsSlugMatch(slug string) bool
- func (ds *FilmDataSource) IsValid(route *models.Route) error
- func (ds *FilmDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type FilmIndexDataSource
- func (ds *FilmIndexDataSource) GetEntityType() reflect.Type
- func (ds *FilmIndexDataSource) GetName() string
- func (ds *FilmIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *FilmIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *FilmIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *FilmIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *FilmIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type PageDataSource
- func (ds *PageDataSource) GetEntityType() reflect.Type
- func (ds *PageDataSource) GetName() string
- func (ds *PageDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *PageDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *PageDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *PageDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *PageDataSource) IsSlugMatch(slug string) bool
- func (ds *PageDataSource) IsValid(route *models.Route) error
- func (ds *PageDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type PageIndexDataSource
- func (ds *PageIndexDataSource) GetEntityType() reflect.Type
- func (ds *PageIndexDataSource) GetName() string
- func (ds *PageIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *PageIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *PageIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *PageIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *PageIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type TVEpisodeDataSource
- func (ds *TVEpisodeDataSource) GetEntityType() reflect.Type
- func (ds *TVEpisodeDataSource) GetName() string
- func (ds *TVEpisodeDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVEpisodeDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *TVEpisodeDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVEpisodeDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *TVEpisodeDataSource) IsSlugMatch(slug string) bool
- func (ds *TVEpisodeDataSource) IsValid(route *models.Route) error
- func (ds *TVEpisodeDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type TVSeasonDataSource
- func (ds *TVSeasonDataSource) GetEntityType() reflect.Type
- func (ds *TVSeasonDataSource) GetName() string
- func (ds *TVSeasonDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVSeasonDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *TVSeasonDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVSeasonDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *TVSeasonDataSource) IsSlugMatch(slug string) bool
- func (ds *TVSeasonDataSource) IsValid(route *models.Route) error
- func (ds *TVSeasonDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type TVSeasonIndexDataSource
- func (ds *TVSeasonIndexDataSource) GetEntityType() reflect.Type
- func (ds *TVSeasonIndexDataSource) GetName() string
- func (ds *TVSeasonIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *TVSeasonIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVSeasonIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *TVSeasonIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *TVSeasonIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type TVShowDataSource
- func (ds *TVShowDataSource) GetEntityType() reflect.Type
- func (ds *TVShowDataSource) GetName() string
- func (ds *TVShowDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVShowDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *TVShowDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVShowDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *TVShowDataSource) IsSlugMatch(slug string) bool
- func (ds *TVShowDataSource) IsValid(route *models.Route) error
- func (ds *TVShowDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
- type TVShowIndexDataSource
- func (ds *TVShowIndexDataSource) GetEntityType() reflect.Type
- func (ds *TVShowIndexDataSource) GetName() string
- func (ds *TVShowIndexDataSource) GetRouteArguments() []models.RouteArgument
- func (ds *TVShowIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
- func (ds *TVShowIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
- func (ds *TVShowIndexDataSource) IsSlugMatch(slug string) bool
- func (ds *TVShowIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BundleDataSource ¶
type BundleDataSource struct { }
BundleDataSource - single Bundle datasource
func (*BundleDataSource) GetEntityType ¶
func (ds *BundleDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*BundleDataSource) GetName ¶
func (ds *BundleDataSource) GetName() string
GetName - name of the datasource
func (*BundleDataSource) GetPartialRouteForEntity ¶
func (ds *BundleDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*BundleDataSource) GetRouteArguments ¶
func (ds *BundleDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*BundleDataSource) GetRouteForEntity ¶
func (ds *BundleDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*BundleDataSource) GetRouteForSlug ¶
func (ds *BundleDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*BundleDataSource) IsSlugMatch ¶
func (ds *BundleDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*BundleDataSource) Iterator ¶
func (ds *BundleDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each Bundle
type BundleIndexDataSource ¶
type BundleIndexDataSource struct{}
BundleIndexDataSource - a list of all bundles
func (*BundleIndexDataSource) GetEntityType ¶
func (ds *BundleIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*BundleIndexDataSource) GetName ¶
func (ds *BundleIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*BundleIndexDataSource) GetRouteArguments ¶
func (ds *BundleIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*BundleIndexDataSource) GetRouteForEntity ¶
func (ds *BundleIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*BundleIndexDataSource) GetRouteForSlug ¶
func (ds *BundleIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*BundleIndexDataSource) IsSlugMatch ¶
func (ds *BundleIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*BundleIndexDataSource) Iterator ¶
func (ds *BundleIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) int
Iterator - return a list of all bundles, iteration of 1
type CollectionDataSource ¶
type CollectionDataSource struct { }
CollectionDataSource - single Collection datasource
func (*CollectionDataSource) GetEntityType ¶
func (ds *CollectionDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*CollectionDataSource) GetName ¶
func (ds *CollectionDataSource) GetName() string
GetName - name of the datasource
func (*CollectionDataSource) GetPartialRouteForEntity ¶
func (ds *CollectionDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*CollectionDataSource) GetRouteArguments ¶
func (ds *CollectionDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*CollectionDataSource) GetRouteForEntity ¶
func (ds *CollectionDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*CollectionDataSource) GetRouteForSlug ¶
func (ds *CollectionDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*CollectionDataSource) IsSlugMatch ¶
func (ds *CollectionDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*CollectionDataSource) IsValid ¶
func (ds *CollectionDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*CollectionDataSource) Iterator ¶
func (ds *CollectionDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each Collection
type CollectionIndexDataSource ¶
type CollectionIndexDataSource struct{}
CollectionIndexDataSource - a list of all Collections
func (*CollectionIndexDataSource) GetEntityType ¶
func (ds *CollectionIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*CollectionIndexDataSource) GetName ¶
func (ds *CollectionIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*CollectionIndexDataSource) GetRouteArguments ¶
func (ds *CollectionIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*CollectionIndexDataSource) GetRouteForEntity ¶
func (ds *CollectionIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*CollectionIndexDataSource) GetRouteForSlug ¶
func (ds *CollectionIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*CollectionIndexDataSource) IsSlugMatch ¶
func (ds *CollectionIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*CollectionIndexDataSource) Iterator ¶
func (ds *CollectionIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - return a list of all Collections, iteration of 1
type FilmDataSource ¶
type FilmDataSource struct { }
FilmDataSource - single film datasource Supports slugs in the /film/:filmID and /film/:title_slug
func (*FilmDataSource) GetEntityType ¶
func (ds *FilmDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*FilmDataSource) GetName ¶
func (ds *FilmDataSource) GetName() string
GetName - name of the datasource
func (*FilmDataSource) GetPartialRouteForEntity ¶
func (ds *FilmDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*FilmDataSource) GetRouteArguments ¶
func (ds *FilmDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*FilmDataSource) GetRouteForEntity ¶
func (ds *FilmDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*FilmDataSource) GetRouteForSlug ¶
func (ds *FilmDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*FilmDataSource) IsSlugMatch ¶
func (ds *FilmDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*FilmDataSource) IsValid ¶
func (ds *FilmDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*FilmDataSource) Iterator ¶
func (ds *FilmDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each film
type FilmIndexDataSource ¶
type FilmIndexDataSource struct{}
FilmIndexDataSource - a list of all films
func (*FilmIndexDataSource) GetEntityType ¶
func (ds *FilmIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*FilmIndexDataSource) GetName ¶
func (ds *FilmIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*FilmIndexDataSource) GetRouteArguments ¶
func (ds *FilmIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*FilmIndexDataSource) GetRouteForEntity ¶
func (ds *FilmIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*FilmIndexDataSource) GetRouteForSlug ¶
func (ds *FilmIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*FilmIndexDataSource) IsSlugMatch ¶
func (ds *FilmIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*FilmIndexDataSource) Iterator ¶
func (ds *FilmIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - return a list of all films, iteration of 1
type PageDataSource ¶
type PageDataSource struct { }
PageDataSource - single Page datasource
func (*PageDataSource) GetEntityType ¶
func (ds *PageDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*PageDataSource) GetName ¶
func (ds *PageDataSource) GetName() string
GetName - name of the datasource
func (*PageDataSource) GetPartialRouteForEntity ¶
func (ds *PageDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*PageDataSource) GetRouteArguments ¶
func (ds *PageDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*PageDataSource) GetRouteForEntity ¶
func (ds *PageDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*PageDataSource) GetRouteForSlug ¶
func (ds *PageDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*PageDataSource) IsSlugMatch ¶
func (ds *PageDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*PageDataSource) IsValid ¶
func (ds *PageDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*PageDataSource) Iterator ¶
func (ds *PageDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each Page
type PageIndexDataSource ¶
type PageIndexDataSource struct{}
PageIndexDataSource - a list of all Pages
func (*PageIndexDataSource) GetEntityType ¶
func (ds *PageIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*PageIndexDataSource) GetName ¶
func (ds *PageIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*PageIndexDataSource) GetRouteArguments ¶
func (ds *PageIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*PageIndexDataSource) GetRouteForEntity ¶
func (ds *PageIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*PageIndexDataSource) GetRouteForSlug ¶
func (ds *PageIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*PageIndexDataSource) IsSlugMatch ¶
func (ds *PageIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*PageIndexDataSource) Iterator ¶
func (ds *PageIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - return a list of all Pages, iteration of 1
type TVEpisodeDataSource ¶
type TVEpisodeDataSource struct { }
TVEpisodeDataSource - single tv episode datasource Supports slugs in the /tv/:tvID/season/:seasonNumber/episode/:episodeNumber format
func (*TVEpisodeDataSource) GetEntityType ¶
func (ds *TVEpisodeDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*TVEpisodeDataSource) GetName ¶
func (ds *TVEpisodeDataSource) GetName() string
GetName - name of the datasource
func (*TVEpisodeDataSource) GetPartialRouteForEntity ¶
func (ds *TVEpisodeDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*TVEpisodeDataSource) GetRouteArguments ¶
func (ds *TVEpisodeDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*TVEpisodeDataSource) GetRouteForEntity ¶
func (ds *TVEpisodeDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*TVEpisodeDataSource) GetRouteForSlug ¶
func (ds *TVEpisodeDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*TVEpisodeDataSource) IsSlugMatch ¶
func (ds *TVEpisodeDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*TVEpisodeDataSource) IsValid ¶
func (ds *TVEpisodeDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*TVEpisodeDataSource) Iterator ¶
func (ds *TVEpisodeDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each film
type TVSeasonDataSource ¶
type TVSeasonDataSource struct { }
TVSeasonDataSource - single tv season datasource Supports slugs in the /tv/:tvID/season/:seasonID and /tv/:title_slug
func (*TVSeasonDataSource) GetEntityType ¶
func (ds *TVSeasonDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*TVSeasonDataSource) GetName ¶
func (ds *TVSeasonDataSource) GetName() string
GetName - name of the datasource
func (*TVSeasonDataSource) GetPartialRouteForEntity ¶
func (ds *TVSeasonDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*TVSeasonDataSource) GetRouteArguments ¶
func (ds *TVSeasonDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*TVSeasonDataSource) GetRouteForEntity ¶
func (ds *TVSeasonDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*TVSeasonDataSource) GetRouteForSlug ¶
func (ds *TVSeasonDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*TVSeasonDataSource) IsSlugMatch ¶
func (ds *TVSeasonDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*TVSeasonDataSource) IsValid ¶
func (ds *TVSeasonDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*TVSeasonDataSource) Iterator ¶
func (ds *TVSeasonDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each season
type TVSeasonIndexDataSource ¶
type TVSeasonIndexDataSource struct{}
TVSeasonIndexDataSource - a list of all films
func (*TVSeasonIndexDataSource) GetEntityType ¶
func (ds *TVSeasonIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*TVSeasonIndexDataSource) GetName ¶
func (ds *TVSeasonIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*TVSeasonIndexDataSource) GetRouteArguments ¶
func (ds *TVSeasonIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*TVSeasonIndexDataSource) GetRouteForEntity ¶
func (ds *TVSeasonIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*TVSeasonIndexDataSource) GetRouteForSlug ¶
func (ds *TVSeasonIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*TVSeasonIndexDataSource) IsSlugMatch ¶
func (ds *TVSeasonIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*TVSeasonIndexDataSource) Iterator ¶
func (ds *TVSeasonIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - return a list of all tv seasons, iteration of 1
type TVShowDataSource ¶
type TVShowDataSource struct { }
TVShowDataSource - single tv season datasource Supports slugs in the /tv/:tvID/season/:seasonID and /tv/:title_slug
func (*TVShowDataSource) GetEntityType ¶
func (ds *TVShowDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*TVShowDataSource) GetName ¶
func (ds *TVShowDataSource) GetName() string
GetName - name of the datasource
func (*TVShowDataSource) GetPartialRouteForEntity ¶
func (ds *TVShowDataSource) GetPartialRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetPartialRouteForEntity - get the partial route
func (*TVShowDataSource) GetRouteArguments ¶
func (ds *TVShowDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*TVShowDataSource) GetRouteForEntity ¶
func (ds *TVShowDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*TVShowDataSource) GetRouteForSlug ¶
func (ds *TVShowDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*TVShowDataSource) IsSlugMatch ¶
func (ds *TVShowDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - checks if the slug is a match
func (*TVShowDataSource) IsValid ¶
func (ds *TVShowDataSource) IsValid(route *models.Route) error
IsValid checks for any validation errors
func (*TVShowDataSource) Iterator ¶
func (ds *TVShowDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - loop over each film
type TVShowIndexDataSource ¶
type TVShowIndexDataSource struct{}
TVShowIndexDataSource - a list of all films
func (*TVShowIndexDataSource) GetEntityType ¶
func (ds *TVShowIndexDataSource) GetEntityType() reflect.Type
GetEntityType - Get the entity type
func (*TVShowIndexDataSource) GetName ¶
func (ds *TVShowIndexDataSource) GetName() string
GetName - returns the name of the datasource
func (*TVShowIndexDataSource) GetRouteArguments ¶
func (ds *TVShowIndexDataSource) GetRouteArguments() []models.RouteArgument
GetRouteArguments returns the available route arguments
func (*TVShowIndexDataSource) GetRouteForEntity ¶
func (ds *TVShowIndexDataSource) GetRouteForEntity(ctx models.RenderContext, entity interface{}) string
GetRouteForEntity - get the route
func (*TVShowIndexDataSource) GetRouteForSlug ¶
func (ds *TVShowIndexDataSource) GetRouteForSlug(ctx models.RenderContext, slug string) string
GetRouteForSlug - get the route
func (*TVShowIndexDataSource) IsSlugMatch ¶
func (ds *TVShowIndexDataSource) IsSlugMatch(slug string) bool
IsSlugMatch - is the slug a match
func (*TVShowIndexDataSource) Iterator ¶
func (ds *TVShowIndexDataSource) Iterator(ctx models.RenderContext, renderer models.Renderer) (errCount int)
Iterator - return a list of all tv seasons, iteration of 1
Source Files
¶
- bundle_datasource.go
- bundle_index_datasource.go
- collection_datasource.go
- collection_index_datasource.go
- film_datasource.go
- film_index_datasource.go
- page_datasource.go
- page_index_datasource.go
- registration.go
- tv_episode_datasource.go
- tv_season_datasource.go
- tv_season_index_datasource.go
- tv_show_datasource.go
- tv_show_index_datasource.go