parseable

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MPL-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectibleField

type CollectibleField struct {
	Name string

	Schema *schema.Schema
	// contains filtered or unexported fields
}

type DefaultParser

type DefaultParser struct {
	// contains filtered or unexported fields
}

func (*DefaultParser) Collectible added in v0.18.0

func (parser *DefaultParser) Collectible() bool

func (*DefaultParser) CollectibleField

func (parser *DefaultParser) CollectibleField(name string, schema *schema.Schema, onFound nodeFunc)

func (*DefaultParser) CollectibleFields added in v0.18.0

func (parser *DefaultParser) CollectibleFields() []CollectibleField

func (*DefaultParser) OptionalField

func (parser *DefaultParser) OptionalField(name nameable.Nameable, schema *schema.Schema, onFound nodeFunc)

func (*DefaultParser) Parse

func (parser *DefaultParser) Parse(node *node.Node) error

func (*DefaultParser) RequiredField

func (parser *DefaultParser) RequiredField(nameable nameable.Nameable, schema *schema.Schema, onFound nodeFunc)

func (*DefaultParser) Schema

func (parser *DefaultParser) Schema() *schema.Schema

func (*DefaultParser) SetCollectible added in v0.18.0

func (parser *DefaultParser) SetCollectible(value bool)

type Field

type Field struct {
	// contains filtered or unexported fields
}

type Parseable

type Parseable interface {
	Parse(node *node.Node) error
	Schema() *schema.Schema
	CollectibleFields() []CollectibleField
	Proto() interface{}
}

Jump to

Keyboard shortcuts

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