Documentation ¶
Overview ¶
Package node provides a low level API to handle nodes in a content tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Get(ctx context.Context, id string) (n Node, err error) // Get a node from content tree Put(ctx context.Context, n Node) (id string, err error) // Put a node in the content tree Move(ctx context.Context, n Node, parent string) (err error) // Move a node to another parent node in the content tree }
Repository provides a limited interface to a storage layer.
Click to show internal directories.
Click to hide internal directories.