rollback

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

AppGraph wires the application.

Functions

This section is empty.

Types

type App

type App struct{ Server *Server }

App is the assembled application.

func InitApp

func InitApp() (*App, *loom.Lifecycle, error)

InitApp builds *App from the graph declared by AppGraph.

func NewApp

func NewApp(server *Server) *App

NewApp builds the application.

type Cache

type Cache struct{}

Cache is released through a plain func() cleanup.

func NewCache

func NewCache() (*Cache, func(), error)

NewCache builds a cache.

type Config

type Config struct{}

Config holds configuration.

func NewConfig

func NewConfig() *Config

NewConfig loads configuration.

type DB

type DB struct{}

DB is released through a cleanup.

func NewDB

func NewDB(*Config) (*DB, loom.Cleanup, error)

NewDB opens a database.

type Server

type Server struct{}

Server fails to construct, forcing a rollback.

func NewServer

func NewServer(*DB, *Cache) (*Server, error)

NewServer always fails; the two resources above must be rolled back.

Jump to

Keyboard shortcuts

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