Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTime ¶
CustomTime time with custom parse format.
func (*CustomTime) UnmarshalJSON ¶
func (ct *CustomTime) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshal JSON with custom time format.
type PageCache ¶ added in v0.9.0
func NewPageCache ¶ added in v0.9.0
type WPError ¶
type WPError struct {
Code string `json:"code"`
Message string `json:"message"`
Data struct {
Status int `json:"status"`
} `json:"data"`
}
WPError is WordPress API error object.
type WPPost ¶
type WPPost struct {
Link string `json:"link"`
Type string `json:"type"`
Status string `json:"status"`
Slug string `json:"slug"`
Lang string `json:"lang"`
CreatedAt CustomTime `json:"date_gmt"`
UpdatedAt CustomTime `json:"modified_gmt"`
Title struct {
Rendered string `json:"rendered"`
} `json:"title"`
Key struct {
Type struct {
Name string `json:"name"`
} `json:"key_type"`
Location struct {
Name string `json:"name"`
} `json:"key_location"`
Hosting struct {
Name string `json:"name"`
} `json:"key_hosting"`
Quality string `json:"key_quality"`
SS string `json:"key_ss"`
} `json:"acf"`
}
WPPost is WordPress API post object.
Click to show internal directories.
Click to hide internal directories.