post

package
v1.4.5-alpha1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package post represents abstraction of business layer blog post object

Index

Constants

View Source
const (
	ConstModelNameBlogPost = "BlogPost"

	ConstErrorModule = "blog"
	ConstErrorLevel  = env.ConstErrorLevelModel
)

Package global constants

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceBlogPost

type InterfaceBlogPost interface {
	GetIdentifier() string
	SetIdentifier(string) error
	IsPublished() bool
	SetPublished(bool) error

	GetTitle() string
	SetTitle(string) error
	GetExcerpt() string
	SetExcerpt(string) error
	GetContent() string
	SetContent(string) error

	GetTags() []interface{}
	SetTags([]interface{}) error
	GetFeaturedImage() string
	SetFeaturedImage(string) error

	GetCreatedAt() time.Time
	SetCreatedAt(time.Time) error
	GetUpdatedAt() time.Time
	SetUpdatedAt(time.Time) error

	models.InterfaceModel
	models.InterfaceObject
	models.InterfaceStorable
}

InterfaceBlogPost represents interface to access business layer implementation of blog post object

func GetBlogPostModel

func GetBlogPostModel() (InterfaceBlogPost, error)

GetBlogPostModel retrieves current InterfaceBlogPost model implementation

Jump to

Keyboard shortcuts

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