mdb

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: MIT Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONTENT_TYPE_REGISTRY      = &ContentTypeRegistry{}
	CONTENT_ROLE_TYPE_REGISTRY = &ContentRoleTypeRegistry{}
	PERSONS_REGISTRY           = &PersonsRegistry{}
	AUTHOR_REGISTRY            = &AuthorRegistry{}
	SOURCE_TYPE_REGISTRY       = &SourceTypeRegistry{}
)

Functions

func InitTypeRegistries

func InitTypeRegistries(exec boil.Executor) error

Types

type AuthorRegistry

type AuthorRegistry struct {
	ByCode map[string]*mdbmodels.Author
}

func (*AuthorRegistry) Init

func (r *AuthorRegistry) Init(exec boil.Executor) error

type CollectionProperties

type CollectionProperties struct {
	FilmDate        Timestamp `json:"film_date"`
	StartDate       Timestamp `json:"start_date"`
	EndDate         Timestamp `json:"end_date"`
	Country         string    `json:"country"`
	City            string    `json:"city"`
	FullAddress     string    `json:"full_address"`
	Genres          []string  `json:"genres"`
	DefaultLanguage string    `json:"default_language"`
	HolidayTag      string    `json:"holiday_tag"`
}

type ContentRoleTypeRegistry

type ContentRoleTypeRegistry struct {
	ByName map[string]*mdbmodels.ContentRoleType
}

func (*ContentRoleTypeRegistry) Init

type ContentTypeRegistry

type ContentTypeRegistry struct {
	ByName map[string]*mdbmodels.ContentType
	ByID   map[int64]*mdbmodels.ContentType
}

func (*ContentTypeRegistry) Init

func (r *ContentTypeRegistry) Init(exec boil.Executor) error

type ContentUnitProperties

type ContentUnitProperties struct {
	FilmDate         Timestamp `json:"film_date"`
	Secure           int       `json:"secure"`
	OriginalLanguage string    `json:"original_language"`
	Duration         float64   `json:"duration"`
}

type FileProperties

type FileProperties struct {
	Secure    int     `json:"secure"`
	URL       string  `json:"url"`
	Duration  float64 `json:"duration"`
	VideoSize string  `json:"video_size"`
}

type PersonsRegistry

type PersonsRegistry struct {
	ByPattern map[string]*mdbmodels.Person
}

func (*PersonsRegistry) Init

func (r *PersonsRegistry) Init(exec boil.Executor) error

type SourceTypeRegistry

type SourceTypeRegistry struct {
	ByName map[string]*mdbmodels.SourceType
	ByID   map[int64]*mdbmodels.SourceType
}

func (*SourceTypeRegistry) Init

func (r *SourceTypeRegistry) Init(exec boil.Executor) error

type Timestamp

type Timestamp struct {
	time.Time
}

A time.Time like structure with support for date part only JSON marshalling

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(b []byte) error

type TypeRegistry

type TypeRegistry interface {
	Init(exec boil.Executor) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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