api

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL