marshaler

package
v0.0.0-...-bc2656d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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