Documentation ¶
Index ¶
- Constants
- type PostPublishResource
- func (r *PostPublishResource) Content(context.Context) (any, error)
- func (r *PostPublishResource) Data() any
- func (r *PostPublishResource) GetFieldString(pattern string) (string, bool)
- func (r *PostPublishResource) MediaType() map[string]any
- 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" // The suffix has an '=' in it to prevent the minifier to remove any enclosing // quoutes around the attribute values. // See issue #8884. 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(context.Context) (any, error)
func (*PostPublishResource) Data ¶
func (r *PostPublishResource) Data() any
func (*PostPublishResource) GetFieldString ¶
func (r *PostPublishResource) GetFieldString(pattern string) (string, bool)
func (*PostPublishResource) MediaType ¶
func (r *PostPublishResource) MediaType() map[string]any
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]any }
func NewPostPublishResource ¶
func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource
Click to show internal directories.
Click to hide internal directories.