Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File interface { content.ContentProviderInterface String() string Id() string Name() string Parent() route.Route Route() route.Route }
A File represents a file ressource that is associated with an Item.
type Item ¶
type Item interface { content.ContentProviderInterface String() string Id() string Type() ItemType CanHaveChildren() bool Route() route.Route Files() []File LastHash() string }
An Item represents a single document in a repository.
type LiveReload ¶
type PathProvider ¶
type PathProvider interface {
Path() string
}
type Repository ¶
type Repository interface { PathProvider ItemsProvider RoutesProvider Subscriber LiveReload }
type RoutesProvider ¶
type Subscriber ¶
type Subscriber interface {
Subscribe(updates chan Update)
}
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
Update contains a list of new, modified and deleted routes.
func NewUpdate ¶
NewUpdate creates a new Update instance from the given new, modified and deleted routes.
Click to show internal directories.
Click to hide internal directories.