commands

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountryBytes = []byte("yrtnuoc")
View Source
var LatBytes = []byte("al")
View Source
var LngBytes = []byte("nol")
View Source
var PossiblyLatLngBytes = []byte("eduti")
View Source
var PreferredBytes = []byte("derreferp_x_")
View Source
var TestData = `` /* 18748-byte string literal not displayed */
View Source
var VariantBytes = []byte("tnairav_x_")

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner struct{}

func (*CmdRunner) Run

func (c *CmdRunner) Run(config *Config) error

type Config

type Config struct {
	File          string
	Create        bool
	DbName        string
	UserName      string
	Password      string
	Host          string
	Port          int
	UseLatLng     bool
	UseGeom       bool
	TableName     string
	InclKeyValues bool
	Schema        string
	WorkerCount   int
}

type DbConn

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

func (*DbConn) CreateIndexes

func (db *DbConn) CreateIndexes() error

func (*DbConn) InitTable

func (db *DbConn) InitTable() error

func (*DbConn) ProcessRequest

func (db *DbConn) ProcessRequest(reqs []Req) error

type JsonConverter

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

type Loader

type Loader struct {
	PasswordProvider PasswordProvider
	Config           Config
	Runner           Runner
}

func (*Loader) DoLoad

func (t *Loader) DoLoad(context *cli.Context) error

type PasswordProvider

type PasswordProvider interface {
	ReadPassword() (string, error)
}

type Req

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

type Runner

type Runner interface {
	Run(c *Config) error
}

type State

type State int
const (
	NoMatch             State = iota
	LatitudeState       State = iota
	LongitudeState      State = iota
	PreferredNamesState State = iota
	VariantNamesState   State = iota
	CountryCodeState    State = iota
	NA                  State = iota
	PossiblyLatLng      State = iota
)

type TerminalPasswordReader

type TerminalPasswordReader struct{}

func (TerminalPasswordReader) ReadPassword

func (pr TerminalPasswordReader) ReadPassword() (string, error)

Jump to

Keyboard shortcuts

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