Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories []*Category
Categories collection of warp Categories
func (*Categories) InsertCategories ¶
func (c *Categories) InsertCategories(newCategories Categories)
InsertCategories adds new categories to the slice.
func (*Categories) InsertCategory ¶
func (c *Categories) InsertCategory(newCategory *Category)
InsertCategory adds a new category to the slice. If the title are same the entries will be merged.
func (Categories) Len ¶
func (c Categories) Len() int
func (Categories) Less ¶
func (c Categories) Less(i, j int) bool
func (Categories) Swap ¶
func (c Categories) Swap(i, j int)
type DoguConverter ¶
type DoguConverter struct{}
DoguConverter converts dogus from the configuration to a warp menu category object
func (*DoguConverter) ReadAndUnmarshalDogu ¶
func (dc *DoguConverter) ReadAndUnmarshalDogu(registry WatchConfigurationContext, key string, tag string) (EntryWithCategory, error)
ReadAndUnmarshalDogu reads the dogu from the configuration. If it has the specific tag (or no tag) it will be converted to entry with a category for the warp menu
type EntryWithCategory ¶
EntryWithCategory is a dto for entries with a Category
type ExternalConverter ¶
type ExternalConverter struct{}
ExternalConverter is used to read external links from the configuration and convert them to a warp menu category object.
func (*ExternalConverter) ReadAndUnmarshalExternal ¶
func (ec *ExternalConverter) ReadAndUnmarshalExternal(registry WatchConfigurationContext, key string) (EntryWithCategory, error)
ReadAndUnmarshalExternal reads a specific external link from the configuration and converts it to an entry with a category.
type WatchConfigurationContext ¶ added in v0.10.0
type WatchConfigurationContext interface { registry.WatchConfigurationContext }