navigation

package
v0.0.0-...-fa4d88c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Items  Items
	Active Item
}

type Item

type Item struct {
	Label string
	URL   string
}

type Items

type Items []Item
type NavTab struct {
	ID           string
	Label        string
	URL          string
	SearchParams *SearchParams
}
type NavTabs []NavTab
type Navigation struct {
	Items  Items
	Active Item
}

func New

func New(c Config) *Navigation

type SearchParam

type SearchParam struct {
	Key   string           `json:"key"`
	Value SearchParamValue `json:"value"`
}

type SearchParamValue

type SearchParamValue struct {
	FromLocation      bool   `json:"fromLocation"`
	FromResponse      bool   `json:"fromResponse"`
	FromQueryParams   bool   `json:"fromQueryParams"`
	SearchParamKey    string `json:"searchParamKey"`
	ResponseFieldPath string `json:"responseFieldPath"`
}

type SearchParams

type SearchParams []SearchParam

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL