Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Children ¶
type Children = map[string]*Definition
type Collection ¶
type Collection = []*Definition
type Definition ¶
type Definition struct { Path string Metadata map[string]string IgnoreValidation bool // contains filtered or unexported fields }
func Define ¶
func Define(path string, options ...DefinitionOption) *Definition
func (*Definition) Child ¶
func (d *Definition) Child(name string) *Definition
func (*Definition) Children ¶
func (d *Definition) Children() map[string]*Definition
func (*Definition) DynamicParts ¶
func (d *Definition) DynamicParts() []string
type DefinitionOption ¶
type DefinitionOption = func(*Definition)
func WithChild ¶
func WithChild(name string, child *Definition) DefinitionOption
func WithChildren ¶
func WithChildren(children Children) DefinitionOption
func WithMetadata ¶
func WithMetadata(metadata map[string]string) DefinitionOption
func WithoutValidation ¶
func WithoutValidation() DefinitionOption
type Request ¶
type Request struct { RequestURL *url.URL Definition *Definition // contains filtered or unexported fields }
func (*Request) TemplateURL ¶
Click to show internal directories.
Click to hide internal directories.