Help us shape the future of Go! Take the 2026 Go Developer Survey

sessionfork

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChild

func CreateChild(
	ctx context.Context,
	home string,
	parent sessions.MetadataSnapshot,
	parentStore *sessions.Store,
	child Child,
	onWriteFailure func(path string, cat fserrors.Category, reason sessions.WriteReason, err error),
) (*sessions.Store, error)

func ForkSession

func ForkSession(
	ctx context.Context,
	home string,
	original *sessions.Session,
	originalStore *sessions.Store,
	onWriteFailure func(fserrors.Category, sessions.WriteReason, error),
) (*sessions.Store, error)

Types

type Child

type Child struct {
	Title   string
	Records []sessions.Record
}

type OwnedChild

type OwnedChild struct {
	Store   *sessions.Store
	Release func()
}

func CreateOwnedChild

func CreateOwnedChild(
	ctx context.Context,
	home string,
	parent sessions.MetadataSnapshot,
	parentStore *sessions.Store,
	child Child,
	terminalRecords []sessions.Record,
	postLaunch func(child *sessions.Store) (rollback func() error, err error),
	onWriteFailure func(path string, cat fserrors.Category, reason sessions.WriteReason, err error),
) (*OwnedChild, error)

Jump to

Keyboard shortcuts

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