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) CreateEntryWithCategoryFromDogu ¶ added in v0.15.1
func (dc *DoguConverter) CreateEntryWithCategoryFromDogu(dogu *core.Dogu, tag string) (EntryWithCategory, error)
CreateEntryWithCategoryFromDogu returns a doguEntry with category if the dogu has the tag specified as parameter.
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(value 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 }