mongo

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package mongo provides a MongoDB-backed store implementation for Nexus using grove ORM with the mongodriver.

Index

Constants

This section is empty.

Variables

View Source
var Migrations = migrate.NewGroup("nexus")

Migrations is the grove migration group for the Nexus mongo store.

Functions

This section is empty.

Types

type Store

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

Store is a MongoDB-backed persistence store.

func New

func New(db *grove.DB) *Store

New creates a new MongoDB store with the given grove database connection.

func (*Store) Close

func (s *Store) Close() error

Close closes the database connection.

func (*Store) Keys

func (s *Store) Keys() key.Store

func (*Store) Migrate

func (s *Store) Migrate() error

Migrate creates indexes for all nexus collections.

func (*Store) Tenants

func (s *Store) Tenants() tenant.Store

func (*Store) Usage

func (s *Store) Usage() usage.Store

Jump to

Keyboard shortcuts

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