pupsourcing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package pupsourcing provides event sourcing capabilities for Go applications.

This package serves as the main entry point for the pupsourcing library. For the core event sourcing functionality, see the es package and its subpackages:

es           - Core types and interfaces
es/store     - Event store abstractions
es/projection - Projection processing
es/adapters/postgres - PostgreSQL implementation
es/migrations - Migration generation

Quick Start:

  1. Generate migrations: go run github.com/getpup/pupsourcing/cmd/migrate-gen -output migrations

  2. Create store and append events: store := postgres.NewStore(postgres.DefaultStoreConfig()) tx, _ := db.BeginTx(ctx, nil) positions, err := store.Append(ctx, tx, events) tx.Commit()

  3. Process events: processor := projection.NewProcessor(db, store, projection.DefaultProcessorConfig()) processor.Run(ctx, myProjection)

See the examples directory for complete working examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns the current version of the library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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