Documentation ¶
Index ¶
- type Category
- type Client
- func (c *Client) CreateCategory(ctx context.Context, cat Category) error
- func (c *Client) CreateDoc(ctx context.Context, doc Document) error
- func (c *Client) DeleteCategory(ctx context.Context, slug string) error
- func (c *Client) DeleteDoc(ctx context.Context, slug string) error
- func (c *Client) GetCategories(ctx context.Context) ([]Category, error)
- func (c *Client) GetCategory(ctx context.Context, slug string) (Category, error)
- func (c *Client) GetDoc(ctx context.Context, slug string) (Document, error)
- func (c *Client) GetDocsForCategory(ctx context.Context, slug string) ([]Document, error)
- func (c *Client) PutDoc(ctx context.Context, doc Document) error
- func (c *Client) UpdateCategory(ctx context.Context, cat Category) error
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCategory ¶
Creates a category with the given name and a slug equivalent to the slugified name First creates the category with the slug title, then updates it to the original title if the title is not equal to the slug (change in case, spacing, etc) This is necessary due to lack of slug field on category creation.
func (*Client) DeleteCategory ¶
func (*Client) GetCategories ¶
TODO: add auto paging
func (*Client) GetCategory ¶
func (*Client) GetDocsForCategory ¶
TODO: add auto paging
Click to show internal directories.
Click to hide internal directories.