Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImdbToAggregate ¶
func ImdbToAggregate(property, content string, movieRef *movie.CrawledMovie)
func OmdbToAggregate ¶
func OmdbToAggregate(movieOmdb *gomdb.MovieResult) *movie.CrawledMovie
Types ¶
type MoviePrimitive ¶
type MoviePrimitive struct { Id string UserId string DisplayName string Description *string Year *uint32 Picture *string WatchUrl *string CrawlUrl *string CreateTime time.Time UpdateTime time.Time Active bool }
MoviePrimitive movie anemic model
@Adapter @DTO
func (MoviePrimitive) SafeCrawlUrl ¶
func (s MoviePrimitive) SafeCrawlUrl() string
func (MoviePrimitive) SafeDescription ¶
func (s MoviePrimitive) SafeDescription() string
func (MoviePrimitive) SafePicture ¶
func (s MoviePrimitive) SafePicture() string
func (MoviePrimitive) SafeWatchUrl ¶
func (s MoviePrimitive) SafeWatchUrl() string
func (MoviePrimitive) SafeYear ¶
func (s MoviePrimitive) SafeYear() uint32
func (MoviePrimitive) UnmarshalAggregate ¶
func (s MoviePrimitive) UnmarshalAggregate() (*movie.Movie, error)
Click to show internal directories.
Click to hide internal directories.