mongo

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mongo registers MongoDB-backed run event log storage for loom-mcp agents.

Use clients/mongo to build the low-level client and pass it to NewStore to obtain a runlog.Store that persists append-only run events.

Package mongo wires the runlog.Store interface to the MongoDB client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store implements runlog.Store by delegating to the Mongo client.

func NewStore

func NewStore(client clientsmongo.Client) (*Store, error)

NewStore builds a Mongo-backed run log store using the provided client.

func (*Store) Append

func (s *Store) Append(ctx context.Context, e *runlog.Event) (runlog.AppendResult, error)

Append implements runlog.Store.

func (*Store) List

func (s *Store) List(ctx context.Context, runID string, cursor string, limit int) (runlog.Page, error)

List implements runlog.Store.

Directories

Path Synopsis
clients
mongo
Package mongo implements the low-level MongoDB client used by the run log store.
Package mongo implements the low-level MongoDB client used by the run log store.

Jump to

Keyboard shortcuts

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