transaction

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(cfg *txConfig)

Option is an option configuring a transaction.

func WithEffects

func WithEffects(fx fx.Effects) Option

WithEffects configures the effects for the receipt.

type Transaction

type Transaction[O any, X any] interface {
	Out() result.Result[O, X]
	Fx() fx.Effects
}

Transaction defines a result & effect pair, used by provider that wishes to return results that have effects.

func NewTransaction

func NewTransaction[O, X any](result result.Result[O, X], options ...Option) Transaction[O, X]

Jump to

Keyboard shortcuts

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