boltutil

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeIntArr

func DecodeIntArr(b []byte) (intArr, error)

Types

type DB

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

func New

func New(path string) (*DB, error)

func (*DB) GetTitle

func (db *DB) GetTitle(title string) (res []byte, e error)

func (*DB) IndexOgrn

func (db *DB) IndexOgrn(id int64) error

func (*DB) IndexOkveds

func (db *DB) IndexOkveds(id int64, okveds []string) (e error)

func (*DB) IndexRegion

func (db *DB) IndexRegion(id int64, regionId byte) (e error)

func (*DB) IndexTitle

func (db *DB) IndexTitle(id int64, title string) (e error)

func (db *DB) hasInt(bucket, key)

func (*DB) Insert

func (db *DB) Insert(org models.Org) error

func (*DB) LimitOgrn

func (db *DB) LimitOgrn(limit int, offsets ...int) ([]byte, error)

func (*DB) LoadXml

func (db *DB) LoadXml(path string) error

func (*DB) PutDate

func (db *DB) PutDate(id int64, data []byte) error

type Prefix

type Prefix byte
var (
	// search index
	Title  Prefix = 't'
	Okved  Prefix = 'o'
	Region Prefix = 'r'
	Ogrn   Prefix = 'i'
	Data   Prefix = 'd'
)

func (Prefix) Byte

func (p Prefix) Byte() byte

func (Prefix) ToSlice

func (p Prefix) ToSlice() []byte

Jump to

Keyboard shortcuts

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