Versions in this module Expand all Collapse all v1 v1.0.6 Mar 8, 2026 v1.0.5 Mar 8, 2026 v1.0.4 Dec 23, 2025 v1.0.3 Jul 10, 2025 v1.0.2 Jun 21, 2025 v1.0.1 Jan 26, 2025 v1.0.0 Jan 26, 2025 Changes in this version + var DatabaseName = "almanax.db" + var Db *memdb.MemDB + var Indexes map[string]SearchIndexes + type Almanax struct + BonusID int64 + CreatedAt time.Time + Date string + DeletedAt *time.Time + Duration float64 + ID int64 + OptimalLvl int + RewardKamas int64 + TributeID int64 + UpdatedAt time.Time + XpRatio float64 + type Bonus struct + BonusTypeID int64 + CreatedAt time.Time + DeletedAt *time.Time + DescriptionDe string + DescriptionEn string + DescriptionEs string + DescriptionFr string + DescriptionPt string + ID int64 + UpdatedAt time.Time + type BonusType struct + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + NameDe string + NameEn string + NameEs string + NameFr string + NameID string + NamePt string + UpdatedAt time.Time + type MappedAlmanax struct + Almanax Almanax + Bonus Bonus + BonusType BonusType + Tribute Tribute + type Repository struct + Db *sql.DB + func NewDatabaseRepository(ctx context.Context, workdir string) *Repository + func (r *Repository) CreateBonus(bonus *Bonus) (int64, error) + func (r *Repository) CreateBonusType(bonusType *BonusType) (int64, error) + func (r *Repository) CreateOrUpdate(date string, almanax *dodumap.MappedMultilangNPCAlmanaxUnity) (int64, error) + func (r *Repository) CreateTribute(tribute *Tribute) (int64, error) + func (r *Repository) Deinit() + func (r *Repository) GetAlmanaxByDateRange(from, to string) ([]MappedAlmanax, error) + func (r *Repository) GetAlmanaxByDateRangeAndNameID(from, to, nameID string) ([]MappedAlmanax, error) + func (r *Repository) GetBonusTypes() ([]BonusType, error) + func (r *Repository) Init(ctx context.Context, workdir string) error + func (r *Repository) UpdateAlmanax(almanax *Almanax) error + func (r *Repository) UpdateFuture(data map[string]dodumap.MappedMultilangNPCAlmanaxUnity) error + type SearchIndexes struct + AllItems meilisearch.IndexManager + Mounts meilisearch.IndexManager + Sets meilisearch.IndexManager + type Tribute struct + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + ItemAnkamaID int64 + ItemCategoryId int + ItemDoduapiUri string + ItemNameDe string + ItemNameEn string + ItemNameEs string + ItemNameFr string + ItemNamePt string + Quantity int + UpdatedAt time.Time + type VersionT struct + MemDb bool + Search bool + var Version VersionT v1.0.0-rc.16 Jan 26, 2025 v1.0.0-rc.15 Jan 25, 2025 v1.0.0-rc.14 Jan 14, 2025 v1.0.0-rc.13 Jan 14, 2025