content

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

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
}

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"`
	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) 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 ValidationResponse struct {
	IsValid         bool
	IsMarkedDeleted bool
}

type Video

type Video struct {
	ID            string `json:"id"`
	Deleted       bool   `json:"deleted,omitempty"`
	BinaryContent []byte `json:"-"` //This field is for internal application usage
}

func (Video) GetType

func (video Video) GetType() string

func (Video) GetUUID

func (video Video) GetUUID() string

func (Video) Initialize

func (video Video) Initialize(binaryContent []byte) Content

func (Video) Validate

func (video Video) Validate(externalValidationEndpoint, tid, username, password string, log *logger.UPPLogger) ValidationResponse

Jump to

Keyboard shortcuts

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