Documentation
¶
Index ¶
- type Content
- type GenericContent
- func (gc GenericContent) GetEditorialDesk() string
- func (gc GenericContent) GetPublication() []string
- func (gc GenericContent) GetType() string
- func (gc GenericContent) GetUUID() string
- func (gc GenericContent) Initialize(binaryContent []byte) Content
- func (gc GenericContent) Validate(externalValidationEndpoint, tid, username, password string, ...) ValidationResponse
- type ValidationResponse
- type Video
- func (video Video) GetEditorialDesk() string
- func (video Video) GetPublication() []string
- func (video Video) GetType() string
- func (video Video) GetUUID() string
- func (video Video) Initialize(binaryContent []byte) Content
- func (video Video) Validate(externalValidationEndpoint, tid, username, password string, ...) ValidationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content interface { Initialize(binaryContent []byte) Content Validate( externalValidationEndpoint, tid, username, password string, log *logger.UPPLogger, ) ValidationResponse GetType() string GetUUID() string GetEditorialDesk() string GetPublication() []string }
Content is the interface for different type of contents from different CMSs.
type GenericContent ¶ added in v1.1.0
type GenericContent struct { UUID string `json:"uuid"` EditorialDesk string `json:"editorialDesk,omitempty"` Publication []string `json:"publication,omitempty"` Type string `json:"-"` // This field is for internal application usage BinaryContent []byte `json:"-"` // This field is for internal application usage Deleted bool `json:"deleted,omitempty"` }
func (GenericContent) GetEditorialDesk ¶ added in v1.12.1
func (gc GenericContent) GetEditorialDesk() string
func (GenericContent) GetPublication ¶ added in v1.12.1
func (gc GenericContent) GetPublication() []string
func (GenericContent) GetType ¶ added in v1.1.0
func (gc GenericContent) GetType() string
func (GenericContent) GetUUID ¶ added in v1.1.0
func (gc GenericContent) GetUUID() string
func (GenericContent) Initialize ¶ added in v1.1.0
func (gc GenericContent) Initialize(binaryContent []byte) Content
func (GenericContent) Validate ¶ added in v1.1.0
func (gc GenericContent) Validate( externalValidationEndpoint, tid, username, password string, log *logger.UPPLogger, ) ValidationResponse
type ValidationResponse ¶
type Video ¶
type Video struct { ID string `json:"id"` Deleted bool `json:"deleted,omitempty"` EditorialDesk string `json:"editorialDesk,omitempty"` Publication []string `json:"publication,omitempty"` BinaryContent []byte `json:"-"` // This field is for internal application usage }
func (Video) GetEditorialDesk ¶ added in v1.12.1
func (Video) GetPublication ¶ added in v1.12.1
func (Video) Initialize ¶
func (Video) Validate ¶
func (video Video) Validate( externalValidationEndpoint, tid, username, password string, log *logger.UPPLogger, ) ValidationResponse
Click to show internal directories.
Click to hide internal directories.