Documentation
¶
Index ¶
- type Attributes
- type Content
- type EomFile
- type Post
- type Source
- type ValidationResponse
- type Video
- type WordPressMessage
- func (wordPressMessage WordPressMessage) GetType() string
- func (wordPressMessage WordPressMessage) GetUUID() string
- func (wordPressMessage WordPressMessage) Initialize(binaryContent []byte) Content
- func (wordPressMessage WordPressMessage) Validate(extValEndpoint string, txId string, username string, password string) ValidationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { XMLName xml.Name `xml:"ObjectMetadata"` SourceCode string `xml:"EditorialNotes>Sources>Source>SourceCode"` LastPublicationDate string `xml:"OutputChannels>DIFTcom>DIFTcomLastPublication"` RefField string `xml:"WiresIndexing>ref_field"` ServiceId string `xml:"WiresIndexing>serviceid"` Category string `xml:"WiresIndexing>category"` IsDeleted bool `xml:"OutputChannels>DIFTcom>DIFTcomMarkDeleted"` OriginalUUID string `xml:"EditorialNotes>OriginalUUID"` }
Attributes is the data structure that models methode content placeholders attributes
type Content ¶
type Content interface { Initialize(binaryContent []byte) Content Validate(externalValidationEndpoint string, txID string, username string, password string) ValidationResponse GetType() string GetUUID() string }
Content is the interface for different type of contents from different CMSs.
type EomFile ¶
type EomFile struct { UUID string `json:"uuid"` LinkedObjects []interface{} `json:"linkedObjects"` ContentType string `json:"type"` Value string `json:"value"` Attributes string `json:"attributes"` SystemAttributes string `json:"systemAttributes"` UsageTickets string `json:"usageTickets"` WorkflowStatus string `json:"workflowStatus"` Type string `json:"-"` //This field is for internal application usage Source Source `json:"-"` //This field is for internal application usage BinaryContent []byte `json:"-"` //This field is for internal application usage }
EomFile models Methode content
func (EomFile) Initialize ¶
type Post ¶
Post models WordPress content neglect unused fields (e.g. id, slug, title, content, etc)
type ValidationResponse ¶
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) Initialize ¶
type WordPressMessage ¶
type WordPressMessage struct { Status string `json:"status"` Error string `json:"error"` Post Post `json:"post"` PreviousURL string `json:"previousUrl"` BinaryContent []byte `json:"-"` //This field is for internal application usage }
WordPressMessage models messages from Wordpress
func (WordPressMessage) GetType ¶
func (wordPressMessage WordPressMessage) GetType() string
func (WordPressMessage) GetUUID ¶
func (wordPressMessage WordPressMessage) GetUUID() string
func (WordPressMessage) Initialize ¶
func (wordPressMessage WordPressMessage) Initialize(binaryContent []byte) Content
func (WordPressMessage) Validate ¶
func (wordPressMessage WordPressMessage) Validate(extValEndpoint string, txId string, username string, password string) ValidationResponse
Click to show internal directories.
Click to hide internal directories.