package lifecycle

import ""

This package is part of the Antithesis Go SDK, which enables Go applications to integrate with the Antithesis platform.

The lifecycle package contains functions which inform the Antithesis environment that particular test phases or milestones have been reached.



func SendEvent

func SendEvent(eventName string, details any)

Causes an event with the name and details provided, to be sent to the Fuzzer and Notebook

func SetupComplete

func SetupComplete(details any)

Call this function when your system and workload are fully initialized. After this function is called, the Antithesis environment will take a snapshot of your system and begin injecting faults.

Calling this function multiple times, or from multiple processes, will have no effect. Antithesis will treat the first time any process called this function as the moment that the setup was completed.