portal

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixBrandModel

func FixBrandModel(brandModel, mod string) (resBrand, resModel string)

FixBrandModel returns fixed brand.

func FixDate

func FixDate(lexeme string) string

FixDate returns fixed date in string format.

Types

type Mapper

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

func NewMapper

func NewMapper(size int) *Mapper

func (*Mapper) Map

func (m *Mapper) Map(ctx context.Context, r *csv.Reader, convertibles chan<- []parsing.Convertible) error

type Operation

type Operation struct {
	Person      string   `csv:"PERSON"`
	RegAddress  string   `csv:"REG_ADDR_KOATUU"`
	RegCode     int      `csv:"OPER_CODE"`
	Reg         string   `csv:"OPER_NAME"`
	Date        string   `csv:"D_REG"`
	DepCode     int32    `csv:"DEP_CODE"`
	Dep         string   `csv:"DEP"`
	Brand       string   `csv:"BRAND"`
	Model       string   `csv:"MODEL"`
	Vin         string   `csv:"VIN"`
	Year        int16    `csv:"MAKE_YEAR"`
	Color       string   `csv:"COLOR"`
	Kind        string   `csv:"KIND"`
	Body        string   `csv:"BODY"`
	Purpose     string   `csv:"PURPOSE"`
	Fuel        string   `csv:"FUEL"`
	Capacity    *int     `csv:"CAPACITY"`
	OwnWeight   *float64 `csv:"OWN_WEIGHT"`
	TotalWeight *float64 `csv:"TOTAL_WEIGHT"`
	Number      string   `csv:"N_REG_NEW"`
}

func (*Operation) Convert

func (o *Operation) Convert() *model.Operation

Jump to

Keyboard shortcuts

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