torefactor

package
v0.0.0-...-8329607 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dev  = "dev"
	Prod = "prod"
)
View Source
const (
	Trace logLevel = "trace"
	Info           = "info"
	Warn           = "warn"
	Error          = "error"
)

Variables

View Source
var (
	DocumentsCount int64
	StatIndexSpeed float64
)
View Source
var (
	L        *log
	LogLevel logLevel = Trace
)
View Source
var (
	StatLongest  time.Duration
	StatCount    int64
	StatDuration time.Duration
	StatMu       sync.Mutex
)
View Source
var (
	RunMode = Dev
)

Functions

func RunMacaron

func RunMacaron(ctx *cli.Context)

Types

type OKVED

type OKVED struct {
	Id         int    `xml:"id"`
	ParentId   int    `xml:"parentId"`
	Code       string `xml:"code"`
	Text       string `xml:"name"`
	Section    string `xml:"section"`
	SubSection string `xml:"subsection"`
	Actual     bool   `xml:"actual"`
}

type OKVEDS

type OKVEDS []OKVED
var (
	OKVEDAPI OKVEDS
)

func (OKVEDS) Childs

func (o OKVEDS) Childs(id int) (p OKVEDS)

func (OKVEDS) Get

func (o OKVEDS) Get(code string) OKVED

func (OKVEDS) GetById

func (o OKVEDS) GetById(id int) (OKVED, bool)

func (OKVEDS) Parent

func (o OKVEDS) Parent(code string) (OKVED, bool)

func (OKVEDS) Parents

func (o OKVEDS) Parents() (p OKVEDS)

func (OKVEDS) SubSections

func (o OKVEDS) SubSections(id int) (p OKVEDS)

Jump to

Keyboard shortcuts

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