Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateForm(thePost *p.Post) (*post.MicropubEndpointResponse, error)
- func (c *Client) CreateJSON(thePost *p.Post) (*post.MicropubEndpointResponse, error)
- func (c *Client) DeleteForm(URL string) (*post.UpdateResponse, error)
- func (c *Client) GenericQuery(args []string) (map[string]any, error)
- func (c *Client) QueryConfig(endpoint string) (*query.MicropubConfig, error)
- func (c *Client) UndeleteForm(URL string) (*post.UpdateResponse, error)
- func (c *Client) UploadFile(filePath string) (*media.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client A client to interact with a given Micropub server
func (*Client) CreateForm ¶
CreateForm Create a post using the form POST method
func (*Client) CreateJSON ¶ added in v0.8.0
CreateJSON Create a post using a JSON-encoded body
func (*Client) DeleteForm ¶ added in v0.5.0
func (c *Client) DeleteForm(URL string) (*post.UpdateResponse, error)
DeleteForm Delete a post using the form POST method
func (*Client) GenericQuery ¶
GenericQuery Perform a given query to the Micropub server
func (*Client) QueryConfig ¶
func (c *Client) QueryConfig(endpoint string) (*query.MicropubConfig, error)
QueryConfig Perform the q=config query for the Micropub server
func (*Client) UndeleteForm ¶ added in v0.5.0
func (c *Client) UndeleteForm(URL string) (*post.UpdateResponse, error)
UndeleteForm Undelete a post using the form POST method
Click to show internal directories.
Click to hide internal directories.