mdb

package
v0.0.5-37 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 5 Imported by: 0

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{}
	TWITTER_USERS_REGISTRY     = &TwitterUsersRegistry{}
	BLOGS_REGISTRY             = &BlogsRegistry{}
)

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 BlogsRegistry

type BlogsRegistry struct {
	ByName map[string]*mdbmodels.Blog
	ByID   map[int64]*mdbmodels.Blog
}

func (*BlogsRegistry) Init

func (r *BlogsRegistry) 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"`
	Source          string    `json:"source"`
	Number          int       `json:"number"`
}

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 TwitterUsersRegistry

type TwitterUsersRegistry struct {
	ByUsername map[string]*mdbmodels.TwitterUser
	ByID       map[int64]*mdbmodels.TwitterUser
}

func (*TwitterUsersRegistry) Init

func (r *TwitterUsersRegistry) Init(exec boil.Executor) 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