Documentation ¶ Index ¶ type API func New(pgs *pages.Pages) *API func (a *API) ActivePages(ctx context.Context) (int, error) func (a *API) PageCreate(ctx context.Context, pg *pages.Page) (*pages.Page, error) func (a *API) PageRead(ctx context.Context, pageID string) (*pages.Page, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { // contains filtered or unexported fields } func New ¶ func New(pgs *pages.Pages) *API func (*API) ActivePages ¶ added in v0.4.1 func (a *API) ActivePages(ctx context.Context) (int, error) func (*API) PageCreate ¶ func (a *API) PageCreate(ctx context.Context, pg *pages.Page) (*pages.Page, error) func (*API) PageRead ¶ func (a *API) PageRead(ctx context.Context, pageID string) (*pages.Page, error) Source Files ¶ View all Source files api.go pages.go Click to show internal directories. Click to hide internal directories.