Versions in this module Expand all Collapse all v1 v1.0.8 Jul 17, 2021 Changes in this version + type Area struct + FiasID string + ID primitive.ObjectID + Kind Kind + KladrID string + Name string + Slug string + Type string + TypeFull string + type Kind uint8 + const Kind_city + const Kind_settlement + type Model struct + func NewModel(db *md.Database) Model + func (m Model) Find(ctx context.Context, name, fiasID, kladrID, typ, typeFull string, kind Kind) (id primitive.ObjectID, err error) + func (m Model) GetByID(ctx context.Context, id primitive.ObjectID) (res Area, err error) + func (m Model) GetByIDs(ctx context.Context, ids []primitive.ObjectID) (res []Area, err error) + func (m Model) GetBySlug(ctx context.Context, slug string) (res Area, err error)