parser

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationParser

type LocationParser struct{}

func NewLocationParser

func NewLocationParser() *LocationParser

func (*LocationParser) Parse

func (p *LocationParser) Parse(base, update string) (map[int]models.Location, error)

type MasterParser

type MasterParser struct{}

func NewMasterParser

func NewMasterParser() *MasterParser

func (*MasterParser) Parse

func (p *MasterParser) Parse(base, update string) (map[int]models.Address, error)

type NeighborhoodParser

type NeighborhoodParser struct{}

func NewNeighborhoodParser

func NewNeighborhoodParser() *NeighborhoodParser

func (*NeighborhoodParser) Parse

func (p *NeighborhoodParser) Parse(base, update string) (map[int]models.Neighborhood, error)

type ParserOptions

type ParserOptions struct {
	States []State
}

type State

type State string

type StreetParser

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

func NewStreetParser

func NewStreetParser(opts ...StreetParserOption) *StreetParser

func (*StreetParser) Parse

func (p *StreetParser) Parse(basePath, updatePath string) (map[int]models.Street, error)

type StreetParserOption

type StreetParserOption func(opts *ParserOptions)

func WithStates

func WithStates(states ...State) StreetParserOption

Jump to

Keyboard shortcuts

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