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 ItemsProvider ¶ added in v0.10.0
type LiveReload ¶ added in v0.10.0
type PathProvider ¶ added in v0.10.0
type PathProvider interface {
Path() string
}
type Repository ¶
type Repository interface { PathProvider ItemsProvider RoutesProvider Subscriber LiveReload }
type RoutesProvider ¶ added in v0.10.0
type Subscriber ¶ added in v0.10.0
type Subscriber interface {
Subscribe(updates chan Update)
}
type Update ¶ added in v0.10.0
type Update struct {
// contains filtered or unexported fields
}
Update contains a list of new, modified and deleted routes.
func NewUpdate ¶ added in v0.10.0
NewUpdate creates a new Update instance from the given new, modified and deleted routes.
Click to show internal directories.
Click to hide internal directories.