Documentation ¶
Index ¶
- Constants
- type PostPublishResource
- func (r *PostPublishResource) Content() (interface{}, error)
- func (r *PostPublishResource) Data() interface{}
- func (r *PostPublishResource) GetFieldString(pattern string) (string, bool)
- func (r *PostPublishResource) MediaType() map[string]interface{}
- func (r *PostPublishResource) Name() string
- func (r *PostPublishResource) Origin() resource.Resource
- func (r *PostPublishResource) Params() maps.Params
- func (r *PostPublishResource) Permalink() string
- func (r *PostPublishResource) RelPermalink() string
- func (r *PostPublishResource) ResourceType() string
- func (r *PostPublishResource) Title() string
- type PostPublishedResource
Constants ¶
View Source
const ( PostProcessPrefix = "__h_pp_l1" PostProcessSuffix = "__e" )
View Source
const (
FieldNotSupported = "__field_not_supported"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostPublishResource ¶
type PostPublishResource struct {
// contains filtered or unexported fields
}
postPublishResource holds a Resource to be transformed post publishing.
func (*PostPublishResource) Content ¶
func (r *PostPublishResource) Content() (interface{}, error)
func (*PostPublishResource) Data ¶
func (r *PostPublishResource) Data() interface{}
func (*PostPublishResource) GetFieldString ¶
func (r *PostPublishResource) GetFieldString(pattern string) (string, bool)
func (*PostPublishResource) MediaType ¶
func (r *PostPublishResource) MediaType() map[string]interface{}
func (*PostPublishResource) Name ¶
func (r *PostPublishResource) Name() string
func (*PostPublishResource) Origin ¶
func (r *PostPublishResource) Origin() resource.Resource
func (*PostPublishResource) Params ¶
func (r *PostPublishResource) Params() maps.Params
func (*PostPublishResource) Permalink ¶
func (r *PostPublishResource) Permalink() string
func (*PostPublishResource) RelPermalink ¶
func (r *PostPublishResource) RelPermalink() string
func (*PostPublishResource) ResourceType ¶
func (r *PostPublishResource) ResourceType() string
func (*PostPublishResource) Title ¶
func (r *PostPublishResource) Title() string
type PostPublishedResource ¶
type PostPublishedResource interface { resource.ResourceTypeProvider resource.ResourceLinksProvider resource.ResourceMetaProvider resource.ResourceParamsProvider resource.ResourceDataProvider resource.OriginProvider MediaType() map[string]interface{} }
func NewPostPublishResource ¶
func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource
Click to show internal directories.
Click to hide internal directories.