pip

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: BSD-3-Clause Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFlagSet

func DefaultFlagSet(ctx context.Context) (*flag.FlagSet, error)

func Run

func Run(ctx context.Context, logger *log.Logger) error

func RunWithFlagSet

func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *log.Logger) error

func RunWithOptions

func RunWithOptions(ctx context.Context, opts *RunOptions, logger *log.Logger) error

Types

type RunOptions

type RunOptions struct {
	Mode                   string   `json:"mode"`
	Verbose                bool     `json:"verbose"`
	Sources                []string `json:"sources"`
	SpatialDatabaseURI     string   `json:"spatial_database_uri"`
	PropertiesReaderURI    string   `json:"properties_reader_uri"`
	IteratorURI            string   `json:"iterator_uri"`
	EnableCustomPlacetypes bool     `json:"enable_custom_placetypes"`
	CustomPlacetypes       string   `json:"custom_placetypes"`
	IsWhosOnFirst          bool     `json:"is_whosonfirst"`
	Latitude               float64  `json:"latitude"`
	Longitude              float64  `json:"longitude"`
	Placetypes             []string `json:"placetypes,omitempty"`
	Geometries             string   `json:"geometries,omitempty"`
	AlternateGeometries    []string `json:"alternate_geometries,omitempty"`
	IsCurrent              []int64  `json:"is_current,omitempty"`
	IsCeased               []int64  `json:"is_ceased,omitempty"`
	IsDeprecated           []int64  `json:"is_deprecated,omitempty"`
	IsSuperseded           []int64  `json:"is_superseded,omitempty"`
	IsSuperseding          []int64  `json:"is_superseding,omitempty"`
	InceptionDate          string   `json:"inception_date,omitempty"`
	CessationDate          string   `json:"cessation_date,omitempty"`
	Properties             []string `json:"properties,omitempty"`
	Sort                   []string `json:"sort,omitempty"`
}

func RunOptionsFromFlagSet added in v0.9.0

func RunOptionsFromFlagSet(ctx context.Context, fs *flag.FlagSet) (*RunOptions, error)

Jump to

Keyboard shortcuts

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