SYMBOL INDEX (771 symbols across 137 files) FILE: annotated.go type Annotated (line 63) | type Annotated struct method String (line 85) | func (a Annotated) String() string { type Annotation (line 117) | type Annotation interface type annotationError (line 131) | type annotationError struct method Error (line 136) | func (e *annotationError) Error() string { method Unwrap (line 141) | func (e *annotationError) Unwrap() error { type paramTagsAnnotation (line 145) | type paramTagsAnnotation struct method apply (line 236) | func (pt paramTagsAnnotation) apply(ann *annotated) error { method build (line 250) | func (pt paramTagsAnnotation) build(ann *annotated) (any, error) { method parameters (line 266) | func (pt paramTagsAnnotation) parameters(ann *annotated) ( function verifyTagsSpaceSeparated (line 159) | func verifyTagsSpaceSeparated(tagIdx int, tag string) error { function verifyValueQuote (line 167) | func verifyValueQuote(value string) (string, error) { function verifyAnnotateTag (line 190) | func verifyAnnotateTag(tag string) error { function ParamTags (line 352) | func ParamTags(tags ...string) Annotation { type resultTagsAnnotation (line 356) | type resultTagsAnnotation struct method apply (line 379) | func (rt resultTagsAnnotation) apply(ann *annotated) error { method build (line 393) | func (rt resultTagsAnnotation) build(ann *annotated) (any, error) { method results (line 408) | func (rt resultTagsAnnotation) results(ann *annotated) ( function ResultTags (line 542) | func ResultTags(tags ...string) Annotation { type outStructInfo (line 546) | type outStructInfo struct type _lifecycleHookAnnotationType (line 551) | type _lifecycleHookAnnotationType constant _unknownHookType (line 554) | _unknownHookType _lifecycleHookAnnotationType = iota constant _onStartHookType (line 555) | _onStartHookType constant _onStopHookType (line 556) | _onStopHookType type lifecycleHookAnnotation (line 559) | type lifecycleHookAnnotation struct method String (line 566) | func (la *lifecycleHookAnnotation) String() string { method apply (line 577) | func (la *lifecycleHookAnnotation) apply(ann *annotated) error { method build (line 628) | func (la *lifecycleHookAnnotation) build(ann *annotated) (any, error) { method validateHookDeps (line 669) | func (la *lifecycleHookAnnotation) validateHookDeps(hookParamTypes []r... method buildHookInstaller (line 750) | func (la *lifecycleHookAnnotation) buildHookInstaller(ann *annotated) ( method buildHook (line 1048) | func (la *lifecycleHookAnnotation) buildHook(fn func(context.Context) ... function makeHookScopeCtor (line 890) | func makeHookScopeCtor(paramTypes []reflect.Type, resultTypes []reflect.... function injectLifecycle (line 995) | func injectLifecycle(paramTypes []reflect.Type) ([]reflect.Type, func([]... function lifecycleExists (line 1032) | func lifecycleExists(paramTypes []reflect.Type) bool { function OnStart (line 1115) | func OnStart(onStart any) Annotation { function OnStop (line 1179) | func OnStop(onStop any) Annotation { type asAnnotation (line 1186) | type asAnnotation struct method apply (line 1294) | func (at *asAnnotation) apply(ann *annotated) error { method build (line 1314) | func (at *asAnnotation) build(ann *annotated) (any, error) { method results (line 1331) | func (at *asAnnotation) results(ann *annotated) ( type asType (line 1191) | type asType struct method String (line 1196) | func (a asType) String() string { function isOut (line 1203) | func isOut(t reflect.Type) bool { function isIn (line 1208) | func isIn(t reflect.Type) bool { function As (line 1259) | func As(interfaces ...any) Annotation { function Self (line 1288) | func Self() any { type self (line 1292) | type self struct function extractResultFields (line 1407) | func extractResultFields(types []reflect.Type) ([]reflect.StructField, f... type fromAnnotation (line 1432) | type fromAnnotation struct method apply (line 1490) | func (fr *fromAnnotation) apply(ann *annotated) error { method build (line 1511) | func (fr *fromAnnotation) build(ann *annotated) (any, error) { method parameters (line 1530) | func (fr *fromAnnotation) parameters(ann *annotated) ( function From (line 1486) | func From(interfaces ...any) Annotation { type annotated (line 1615) | type annotated struct method String (line 1629) | func (ann annotated) String() string { method Build (line 1650) | func (ann *annotated) Build() (any, error) { method applyOptionalTag (line 1693) | func (ann *annotated) applyOptionalTag() { method cleanUpAsResults (line 1732) | func (ann *annotated) cleanUpAsResults() { method typeCheckOrigFn (line 1758) | func (ann *annotated) typeCheckOrigFn() error { method currentResultTypes (line 1794) | func (ann *annotated) currentResultTypes() (resultTypes []reflect.Type... method currentParamTypes (line 1808) | func (ann *annotated) currentParamTypes() []reflect.Type { function Annotate (line 1901) | func Annotate(t any, anns ...Annotation) any { FILE: annotated_test.go function TestAnnotated (line 41) | func TestAnnotated(t *testing.T) { type fromStringer (line 74) | type fromStringer struct method String (line 78) | func (from *fromStringer) String() string { type asStringer (line 82) | type asStringer struct method String (line 86) | func (as *asStringer) String() string { type anotherStringer (line 90) | type anotherStringer struct method String (line 94) | func (a anotherStringer) String() string { function TestAnnotatedFrom (line 98) | func TestAnnotatedFrom(t *testing.T) { function TestAnnotatedFromFailures (line 293) | func TestAnnotatedFromFailures(t *testing.T) { function TestAnnotatedAs (line 427) | func TestAnnotatedAs(t *testing.T) { function TestAnnotatedAsFailures (line 823) | func TestAnnotatedAsFailures(t *testing.T) { function TestAnnotatedWrongUsage (line 911) | func TestAnnotatedWrongUsage(t *testing.T) { function TestAnnotatedString (line 992) | func TestAnnotatedString(t *testing.T) { function TestAnnotate (line 1051) | func TestAnnotate(t *testing.T) { function TestAnnotateApplyFail (line 1675) | func TestAnnotateApplyFail(t *testing.T) { function TestAnnotateApplySuccess (line 1754) | func TestAnnotateApplySuccess(t *testing.T) { function assertApp (line 1800) | func assertApp( function TestHookAnnotations (line 1830) | func TestHookAnnotations(t *testing.T) { function TestHookAnnotationFailures (line 2276) | func TestHookAnnotationFailures(t *testing.T) { function TestHookAnnotationFunctionFlexibility (line 2474) | func TestHookAnnotationFunctionFlexibility(t *testing.T) { FILE: app.go constant DefaultTimeout (line 45) | DefaultTimeout = 15 * time.Second type Option (line 56) | type Option interface function Error (line 68) | func Error(errs ...error) Option { type errorOption (line 72) | type errorOption method apply (line 74) | func (errs errorOption) apply(mod *module) { method String (line 78) | func (errs errorOption) String() string { function Options (line 93) | func Options(opts ...Option) Option { type optionGroup (line 97) | type optionGroup method apply (line 99) | func (og optionGroup) apply(mod *module) { method String (line 105) | func (og optionGroup) String() string { function StartTimeout (line 118) | func StartTimeout(v time.Duration) Option { type startTimeoutOption (line 122) | type startTimeoutOption method apply (line 124) | func (t startTimeoutOption) apply(m *module) { method String (line 133) | func (t startTimeoutOption) String() string { function StopTimeout (line 142) | func StopTimeout(v time.Duration) Option { type stopTimeoutOption (line 146) | type stopTimeoutOption method apply (line 148) | func (t stopTimeoutOption) apply(m *module) { method String (line 157) | func (t stopTimeoutOption) String() string { function RecoverFromPanics (line 164) | func RecoverFromPanics() Option { type recoverFromPanicsOption (line 168) | type recoverFromPanicsOption struct method apply (line 170) | func (o recoverFromPanicsOption) apply(m *module) { method String (line 179) | func (o recoverFromPanicsOption) String() string { function WithLogger (line 204) | func WithLogger(constructor any) Option { type withLoggerOption (line 211) | type withLoggerOption struct method apply (line 216) | func (l withLoggerOption) apply(m *module) { method String (line 223) | func (l withLoggerOption) String() string { type Printer (line 232) | type Printer interface function Logger (line 239) | func Logger(p Printer) Option { type loggerOption (line 243) | type loggerOption struct method apply (line 245) | func (l loggerOption) apply(m *module) { method String (line 255) | func (l loggerOption) String() string { type App (line 300) | type App struct method log (line 524) | func (app *App) log() fxevent.Logger { method exit (line 568) | func (app *App) exit(code int) { method Run (line 596) | func (app *App) Run() { method run (line 605) | func (app *App) run(done func() <-chan ShutdownSignal) (exitCode int) { method Err (line 634) | func (app *App) Err() error { method Start (line 660) | func (app *App) Start(ctx context.Context) (err error) { method withRollback (line 680) | func (app *App) withRollback( method start (line 700) | func (app *App) start(ctx context.Context) error { method Stop (line 716) | func (app *App) Stop(ctx context.Context) (err error) { method Done (line 741) | func (app *App) Done() <-chan os.Signal { method Wait (line 752) | func (app *App) Wait() <-chan ShutdownSignal { method StartTimeout (line 760) | func (app *App) StartTimeout() time.Duration { method StopTimeout (line 767) | func (app *App) StopTimeout() time.Duration { method dotGraph (line 771) | func (app *App) dotGraph() (DotGraph, error) { type provide (line 324) | type provide struct type invoke (line 340) | type invoke struct type ErrorHandler (line 353) | type ErrorHandler interface function ErrorHook (line 360) | func ErrorHook(funcs ...ErrorHandler) Option { type errorHookOption (line 364) | type errorHookOption method apply (line 366) | func (eho errorHookOption) apply(m *module) { method String (line 370) | func (eho errorHookOption) String() string { type errorHandlerList (line 378) | type errorHandlerList method HandleError (line 380) | func (ehl errorHandlerList) HandleError(err error) { function validate (line 387) | func validate(validate bool) Option { type validateOption (line 393) | type validateOption struct method apply (line 397) | func (o validateOption) apply(m *module) { method String (line 406) | func (o validateOption) String() string { function ValidateApp (line 412) | func ValidateApp(opts ...Option) error { function New (line 422) | func New(opts ...Option) *App { type DotGraph (line 535) | type DotGraph type errWithGraph (line 537) | type errWithGraph interface type errorWithGraph (line 541) | type errorWithGraph struct method Graph (line 546) | func (err errorWithGraph) Graph() DotGraph { method Error (line 550) | func (err errorWithGraph) Error() string { function VisualizeError (line 557) | func VisualizeError(err error) (string, error) { type withTimeoutParams (line 777) | type withTimeoutParams struct function withTimeout (line 787) | func withTimeout(ctx context.Context, param *withTimeoutParams) error { type appLogger (line 826) | type appLogger struct method LogEvent (line 828) | func (l appLogger) LogEvent(ev fxevent.Event) { FILE: app_internal_test.go function TestAppRun (line 39) | func TestAppRun(t *testing.T) { function TestValidateString (line 70) | func TestValidateString(t *testing.T) { function WithExit (line 80) | func WithExit(f func(int)) Option { type withExitOption (line 84) | type withExitOption method String (line 86) | func (o withExitOption) String() string { method apply (line 90) | func (o withExitOption) apply(m *module) { function WithClock (line 97) | func WithClock(clock fxclock.Clock) Option { type withClockOption (line 101) | type withClockOption struct method apply (line 103) | func (o withClockOption) apply(m *module) { method String (line 107) | func (o withClockOption) String() string { function TestAnnotationError (line 111) | func TestAnnotationError(t *testing.T) { function TestStartDoesNotRegisterSignals (line 124) | func TestStartDoesNotRegisterSignals(t *testing.T) { FILE: app_test.go function NewForTest (line 51) | func NewForTest(tb testing.TB, opts ...Option) *App { function NewSpied (line 63) | func NewSpied(opts ...Option) (*App, *fxlog.Spy) { function validateTestApp (line 71) | func validateTestApp(tb testing.TB, opts ...Option) error { function TestNewApp (line 83) | func TestNewApp(t *testing.T) { function TestPrivate (line 395) | func TestPrivate(t *testing.T) { function TestPrivateProvideWithDecorators (line 492) | func TestPrivateProvideWithDecorators(t *testing.T) { function TestWithLoggerErrorUseDefault (line 617) | func TestWithLoggerErrorUseDefault(t *testing.T) { function TestWithLogger (line 662) | func TestWithLogger(t *testing.T) { function getInt (line 754) | func getInt() int { return 0 } function decorateInt (line 756) | func decorateInt(i int) int { return i } function getModuleB (line 766) | func getModuleB() Option { function TestModuleTrace (line 773) | func TestModuleTrace(t *testing.T) { function TestRunEventEmission (line 863) | func TestRunEventEmission(t *testing.T) { type customError (line 1019) | type customError struct method Error (line 1023) | func (e *customError) Error() string { method Unwrap (line 1027) | func (e *customError) Unwrap() error { type errHandlerFunc (line 1031) | type errHandlerFunc method HandleError (line 1033) | func (f errHandlerFunc) HandleError(err error) { f(err) } function TestInvokes (line 1035) | func TestInvokes(t *testing.T) { function TestError (line 1118) | func TestError(t *testing.T) { function TestOptions (line 1195) | func TestOptions(t *testing.T) { function TestTimeoutOptions (line 1283) | func TestTimeoutOptions(t *testing.T) { function TestAppRunTimeout (line 1324) | func TestAppRunTimeout(t *testing.T) { function TestAppStart (line 1456) | func TestAppStart(t *testing.T) { function TestAppStop (line 1928) | func TestAppStop(t *testing.T) { function TestValidateApp (line 1981) | func TestValidateApp(t *testing.T) { function TestHookConstructors (line 2073) | func TestHookConstructors(t *testing.T) { function TestDone (line 2342) | func TestDone(t *testing.T) { function TestShutdownThenWait (line 2358) | func TestShutdownThenWait(t *testing.T) { function TestReplaceLogger (line 2388) | func TestReplaceLogger(t *testing.T) { function TestNopLogger (line 2404) | func TestNopLogger(t *testing.T) { function TestNopLoggerOptionString (line 2411) | func TestNopLoggerOptionString(t *testing.T) { function TestCustomLoggerWithPrinter (line 2420) | func TestCustomLoggerWithPrinter(t *testing.T) { function TestCustomLoggerWithLifecycle (line 2442) | func TestCustomLoggerWithLifecycle(t *testing.T) { function TestCustomLoggerFailure (line 2495) | func TestCustomLoggerFailure(t *testing.T) { type testErrorWithGraph (line 2516) | type testErrorWithGraph struct method Graph (line 2520) | func (we testErrorWithGraph) Graph() DotGraph { method Error (line 2524) | func (we testErrorWithGraph) Error() string { function TestVisualizeError (line 2528) | func TestVisualizeError(t *testing.T) { function TestErrorHook (line 2555) | func TestErrorHook(t *testing.T) { function TestOptionString (line 2622) | func TestOptionString(t *testing.T) { function TestMain (line 2731) | func TestMain(m *testing.M) { type testLogger (line 2735) | type testLogger struct method Printf (line 2737) | func (l testLogger) Printf(s string, args ...any) { method LogEvent (line 2741) | func (l testLogger) LogEvent(event fxevent.Event) { method String (line 2745) | func (l testLogger) String() string { type testErrorHandler (line 2749) | type testErrorHandler struct method HandleError (line 2751) | func (h testErrorHandler) HandleError(err error) { method String (line 2755) | func (h testErrorHandler) String() string { FILE: app_unixes.go constant _sigINT (line 29) | _sigINT = unix.SIGINT constant _sigTERM (line 30) | _sigTERM = unix.SIGTERM FILE: app_wasm.go constant _sigINT (line 29) | _sigINT = syscall.SIGINT constant _sigTERM (line 30) | _sigTERM = syscall.SIGTERM FILE: app_windows.go constant _sigINT (line 29) | _sigINT = windows.SIGINT constant _sigTERM (line 30) | _sigTERM = windows.SIGTERM FILE: app_windows_test.go function TestWindowsCtrlCHandler (line 42) | func TestWindowsCtrlCHandler(t *testing.T) { function TestWindowsMinimalApp (line 96) | func TestWindowsMinimalApp(t *testing.T) { FILE: broadcast.go type broadcaster (line 31) | type broadcaster struct method reset (line 51) | func (b *broadcaster) reset() { method Done (line 62) | func (b *broadcaster) Done() <-chan os.Signal { method Wait (line 83) | func (b *broadcaster) Wait() <-chan ShutdownSignal { method Broadcast (line 100) | func (b *broadcaster) Broadcast(signal ShutdownSignal) error { method broadcast (line 123) | func (b *broadcaster) broadcast( method broadcastDone (line 138) | func (b *broadcaster) broadcastDone(signal ShutdownSignal) (int, int) { method broadcastWait (line 152) | func (b *broadcaster) broadcastWait(signal ShutdownSignal) (int, int) { type unsentSignalError (line 166) | type unsentSignalError struct method Error (line 172) | func (err *unsentSignalError) Error() string { FILE: decorate.go function Decorate (line 178) | func Decorate(decorators ...any) Option { type decorateOption (line 185) | type decorateOption struct method apply (line 190) | func (o decorateOption) apply(mod *module) { method String (line 199) | func (o decorateOption) String() string { type decorator (line 208) | type decorator struct function runDecorator (line 220) | func runDecorator(c container, d decorator, opts ...dig.DecorateOption) ... FILE: decorate_test.go function TestDecorateSuccess (line 34) | func TestDecorateSuccess(t *testing.T) { function TestDecorateFailure (line 350) | func TestDecorateFailure(t *testing.T) { FILE: docs/ex/annotate/cast.go type HTTPClient (line 32) | type HTTPClient interface type Config (line 43) | type Config struct function NewHTTPClient (line 47) | func NewHTTPClient(Config) (*http.Client, error) { function NewGitHubClient (line 54) | func NewGitHubClient(client HTTPClient) *github.Client { function options (line 59) | func options() fx.Option { FILE: docs/ex/annotate/cast_bad.go function NewGitHubClient (line 35) | func NewGitHubClient(client *http.Client) *github.Client { function options (line 40) | func options() fx.Option { FILE: docs/ex/annotate/cast_test.go function TestCast (line 32) | func TestCast(t *testing.T) { FILE: docs/ex/annotate/github/stub.go type Client (line 24) | type Client struct FILE: docs/ex/annotate/sample.go function howToAnnotate (line 27) | func howToAnnotate() (before, after fx.Option) { FILE: docs/ex/annotate/sample_test.go function TestHowToAnnotate (line 32) | func TestHowToAnnotate(t *testing.T) { FILE: docs/ex/get-started/01-minimal/main.go function main (line 27) | func main() { FILE: docs/ex/get-started/01-minimal/main_test.go function TestRun (line 29) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/02-http-server/main.go function main (line 33) | func main() { function NewHTTPServer (line 51) | func NewHTTPServer(lc fx.Lifecycle) *http.Server { FILE: docs/ex/get-started/02-http-server/main_test.go function TestRun (line 32) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/03-echo-handler/main.go function main (line 34) | func main() { function NewServeMux (line 55) | func NewServeMux(echo *EchoHandler) *http.ServeMux { type EchoHandler (line 67) | type EchoHandler struct method ServeHTTP (line 75) | func (*EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewEchoHandler (line 70) | func NewEchoHandler() *EchoHandler { function NewHTTPServer (line 86) | func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux) *http.Server { FILE: docs/ex/get-started/03-echo-handler/main_test.go function TestRun (line 31) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/04-logger/main.go function main (line 35) | func main() { function NewServeMux (line 55) | func NewServeMux(echo *EchoHandler) *http.ServeMux { type EchoHandler (line 64) | type EchoHandler struct method ServeHTTP (line 80) | func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewEchoHandler (line 72) | func NewEchoHandler(log *zap.Logger) *EchoHandler { function NewHTTPServer (line 91) | func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux, log *zap.Logger)... FILE: docs/ex/get-started/04-logger/main_test.go function TestRun (line 31) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/05-registration/main.go function main (line 34) | func main() { type Route (line 58) | type Route interface function NewServeMux (line 71) | func NewServeMux(route Route) *http.ServeMux { type EchoHandler (line 81) | type EchoHandler struct method Pattern (line 93) | func (*EchoHandler) Pattern() string { method ServeHTTP (line 100) | func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewEchoHandler (line 86) | func NewEchoHandler(log *zap.Logger) *EchoHandler { function NewHTTPServer (line 108) | func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux, log *zap.Logger)... FILE: docs/ex/get-started/05-registration/main_test.go function TestRun (line 31) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/06-another-handler/main.go function main (line 35) | func main() { type Route (line 74) | type Route interface function NewServeMux (line 85) | func NewServeMux(route1, route2 Route) *http.ServeMux { type HelloHandler (line 98) | type HelloHandler struct method Pattern (line 112) | func (*HelloHandler) Pattern() string { method ServeHTTP (line 120) | func (h *HelloHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques... function NewHelloHandler (line 103) | func NewHelloHandler(log *zap.Logger) *HelloHandler { type EchoHandler (line 139) | type EchoHandler struct method Pattern (line 150) | func (*EchoHandler) Pattern() string { method ServeHTTP (line 155) | func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewEchoHandler (line 144) | func NewEchoHandler(log *zap.Logger) *EchoHandler { function NewHTTPServer (line 163) | func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux, log *zap.Logger)... FILE: docs/ex/get-started/06-another-handler/main_test.go function TestRun (line 31) | func TestRun(t *testing.T) { FILE: docs/ex/get-started/07-many-handlers/main.go function main (line 35) | func main() { function AsRoute (line 64) | func AsRoute(f any) any { type Route (line 76) | type Route interface function NewServeMux (line 86) | func NewServeMux(routes []Route) *http.ServeMux { type HelloHandler (line 98) | type HelloHandler struct method Pattern (line 109) | func (*HelloHandler) Pattern() string { method ServeHTTP (line 114) | func (h *HelloHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques... function NewHelloHandler (line 103) | func NewHelloHandler(log *zap.Logger) *HelloHandler { type EchoHandler (line 131) | type EchoHandler struct method Pattern (line 142) | func (*EchoHandler) Pattern() string { method ServeHTTP (line 147) | func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewEchoHandler (line 136) | func NewEchoHandler(log *zap.Logger) *EchoHandler { function NewHTTPServer (line 155) | func NewHTTPServer(lc fx.Lifecycle, mux *http.ServeMux, log *zap.Logger)... FILE: docs/ex/get-started/07-many-handlers/main_test.go function TestRun (line 31) | func TestRun(t *testing.T) { FILE: docs/ex/modules/module.go type Config (line 56) | type Config struct function parseConfig (line 62) | func parseConfig() (Config, error) { type Params (line 68) | type Params struct type Result (line 79) | type Result struct function New (line 89) | func New(p Params) (Result, error) { type Server (line 97) | type Server struct method Start (line 100) | func (*Server) Start() error { function startServer (line 104) | func startServer(srv *Server) error { function wrapLogger (line 108) | func wrapLogger(log *zap.Logger) *zap.Logger { FILE: docs/ex/modules/module_test.go function TestModule (line 32) | func TestModule(t *testing.T) { FILE: docs/ex/parameter-objects/define.go type Client (line 31) | type Client struct type ClientConfig (line 38) | type ClientConfig struct type ClientParams (line 46) | type ClientParams struct function NewClient (line 62) | func NewClient(p ClientParams) (*Client, error) { FILE: docs/ex/parameter-objects/define_test.go function TestClientParams (line 32) | func TestClientParams(t *testing.T) { FILE: docs/ex/parameter-objects/extend.go type Params (line 33) | type Params struct function New (line 49) | func New(p Params) (*Client, error) { FILE: docs/ex/parameter-objects/extend_test.go function TestExtendParams (line 33) | func TestExtendParams(t *testing.T) { FILE: docs/ex/result-objects/define.go type Client (line 26) | type Client struct type ClientResult (line 32) | type ClientResult struct function NewClient (line 47) | func NewClient() (ClientResult, error) { FILE: docs/ex/result-objects/define_test.go function TestClientResult (line 31) | func TestClientResult(t *testing.T) { FILE: docs/ex/result-objects/extend.go type Inspector (line 26) | type Inspector struct type Result (line 31) | type Result struct function New (line 45) | func New() (Result, error) { FILE: docs/ex/result-objects/extend_test.go function TestExtendResult (line 31) | func TestExtendResult(t *testing.T) { FILE: docs/ex/value-groups/consume/annotate.go type Emitter (line 51) | type Emitter struct function NewEmitter (line 56) | func NewEmitter(watchers []Watcher) (*Emitter, error) { function EmitterFrom (line 80) | func EmitterFrom(watchers ...Watcher) (*Emitter, error) { FILE: docs/ex/value-groups/consume/consume_test.go function TestConsume (line 31) | func TestConsume(t *testing.T) { FILE: docs/ex/value-groups/consume/param.go type Watcher (line 26) | type Watcher interface type Params (line 38) | type Params struct type Result (line 51) | type Result struct function New (line 60) | func New(p Params) (Result, error) { FILE: docs/ex/value-groups/feed/annotate.go type FileWatcher (line 47) | type FileWatcher struct function NewFileWatcher (line 64) | func NewFileWatcher( /* ... */ ) (*FileWatcher, error) { function NewWatcher (line 73) | func NewWatcher( /* ... */ ) (Watcher, error) { FILE: docs/ex/value-groups/feed/feed_test.go function TestWatcherModules (line 31) | func TestWatcherModules(t *testing.T) { FILE: docs/ex/value-groups/feed/result.go type Watcher (line 33) | type Watcher interface type watcher (line 35) | type watcher struct type Result (line 40) | type Result struct function New (line 55) | func New( /* ... */ ) (Result, error) { FILE: docs/internal/apptest/run.go type StartOption (line 37) | type StartOption interface type startOptions (line 39) | type startOptions struct type isRunningOption (line 44) | type isRunningOption method apply (line 54) | func (o isRunningOption) apply(opts *startOptions) { function IsRunning (line 50) | func IsRunning(f func(string) bool) StartOption { function DefaultIsRunning (line 63) | func DefaultIsRunning(line string) bool { type timeoutOption (line 80) | type timeoutOption method apply (line 90) | func (o timeoutOption) apply(opts *startOptions) { function Timeout (line 86) | func Timeout(t time.Duration) StartOption { function Start (line 98) | func Start(t test.T, main func(), options ...StartOption) { FILE: docs/internal/apptest/run_test.go function waitForInterrupt (line 35) | func waitForInterrupt() { function TestStart_FxLogger (line 41) | func TestStart_FxLogger(t *testing.T) { function TestStart_ZapLogger (line 51) | func TestStart_ZapLogger(t *testing.T) { function TestStart_Custom (line 61) | func TestStart_Custom(t *testing.T) { function TestStart_UnexpectedExit (line 73) | func TestStart_UnexpectedExit(t *testing.T) { function TestStart_Timoeut (line 85) | func TestStart_Timoeut(t *testing.T) { FILE: docs/internal/exectest/cmd.go function Command (line 42) | func Command(t test.T, main func()) *exec.Cmd { FILE: docs/internal/exectest/cmd_test.go function TestCommandSuccess (line 33) | func TestCommandSuccess(t *testing.T) { function TestCommandNonZero (line 46) | func TestCommandNonZero(t *testing.T) { FILE: docs/internal/exectest/output.go function StartWithOutput (line 39) | func StartWithOutput(t test.T, cmd *exec.Cmd) io.Reader { FILE: docs/internal/exectest/output_test.go function TestStartOutputReader_Stdout (line 33) | func TestStartOutputReader_Stdout(t *testing.T) { function TestStartOutputReader_Stderr (line 45) | func TestStartOutputReader_Stderr(t *testing.T) { function TestStartOutputReader_Combined (line 57) | func TestStartOutputReader_Combined(t *testing.T) { FILE: docs/internal/httptest/http.go function PostSuccess (line 38) | func PostSuccess(t test.T, url, body string) string { FILE: docs/internal/httptest/http_test.go function TestPostSuccess (line 33) | func TestPostSuccess(t *testing.T) { FILE: docs/internal/iotest/read.go function ReadAll (line 32) | func ReadAll(t test.T, r io.Reader) string { FILE: docs/internal/iotest/read_test.go function TestReadAll (line 33) | func TestReadAll(t *testing.T) { type fakeT (line 46) | type fakeT struct method Errorf (line 52) | func (t *fakeT) Errorf(msg string, args ...any) { method FailNow (line 56) | func (t *fakeT) FailNow() { FILE: docs/internal/test/fake.go type FakeReport (line 30) | type FakeReport struct function WithFake (line 40) | func WithFake(t T, f func(T)) FakeReport { type fakeT (line 62) | type fakeT struct method Errorf (line 72) | func (t *fakeT) Errorf(msg string, args ...any) { method FailNow (line 80) | func (t *fakeT) FailNow() { FILE: docs/internal/test/fake_test.go function TestWithFake_Success (line 29) | func TestWithFake_Success(t *testing.T) { function TestWithFake_Failure (line 38) | func TestWithFake_Failure(t *testing.T) { function TestWithFake_Fatal (line 47) | func TestWithFake_Fatal(t *testing.T) { FILE: docs/internal/test/t.go type T (line 24) | type T interface FILE: error_example_test.go function ExampleError (line 32) | func ExampleError() { FILE: example_test.go function NewLogger (line 50) | func NewLogger() *log.Logger { function NewHandler (line 84) | func NewHandler(logger *log.Logger) (http.Handler, error) { function NewMux (line 119) | func NewMux(lc fx.Lifecycle, logger *log.Logger) *http.ServeMux { function Register (line 180) | func Register(mux *http.ServeMux, h http.Handler) { function Example (line 184) | func Example() { FILE: extract.go function Extract (line 37) | func Extract(target any) Option { function isExported (line 153) | func isExported(id string) bool { FILE: extract_test.go function TestExtract (line 36) | func TestExtract(t *testing.T) { FILE: fxevent/console.go type ConsoleLogger (line 33) | type ConsoleLogger struct method logf (line 39) | func (l *ConsoleLogger) logf(msg string, args ...any) { method LogEvent (line 44) | func (l *ConsoleLogger) LogEvent(event Event) { FILE: fxevent/console_test.go type richError (line 37) | type richError struct method Error (line 39) | func (e *richError) Error() string { return "plain error" } method Format (line 41) | func (e *richError) Format(w fmt.State, c rune) { function TestConsoleLogger (line 50) | func TestConsoleLogger(t *testing.T) { function joinLines (line 416) | func joinLines(lines ...string) string { FILE: fxevent/event.go type Event (line 29) | type Event interface type OnStartExecuting (line 54) | type OnStartExecuting struct method event (line 34) | func (*OnStartExecuting) event() {} type OnStartExecuted (line 64) | type OnStartExecuted struct method event (line 35) | func (*OnStartExecuted) event() {} type OnStopExecuting (line 84) | type OnStopExecuting struct method event (line 36) | func (*OnStopExecuting) event() {} type OnStopExecuted (line 94) | type OnStopExecuted struct method event (line 37) | func (*OnStopExecuted) event() {} type Supplied (line 110) | type Supplied struct method event (line 38) | func (*Supplied) event() {} type Provided (line 128) | type Provided struct method event (line 39) | func (*Provided) event() {} type Replaced (line 155) | type Replaced struct method event (line 40) | func (*Replaced) event() {} type Decorated (line 173) | type Decorated struct method event (line 41) | func (*Decorated) event() {} type BeforeRun (line 197) | type BeforeRun struct method event (line 42) | func (*BeforeRun) event() {} type Run (line 210) | type Run struct method event (line 43) | func (*Run) event() {} type Invoking (line 230) | type Invoking struct method event (line 44) | func (*Invoking) event() {} type Invoked (line 240) | type Invoked struct method event (line 45) | func (*Invoked) event() {} type Started (line 257) | type Started struct method event (line 50) | func (*Started) event() {} type Stopping (line 265) | type Stopping struct method event (line 46) | func (*Stopping) event() {} type Stopped (line 272) | type Stopped struct method event (line 47) | func (*Stopped) event() {} type RollingBack (line 279) | type RollingBack struct method event (line 48) | func (*RollingBack) event() {} type RolledBack (line 286) | type RolledBack struct method event (line 49) | func (*RolledBack) event() {} type LoggerInitialized (line 293) | type LoggerInitialized struct method event (line 51) | func (*LoggerInitialized) event() {} FILE: fxevent/event_test.go function TestForCoverage (line 30) | func TestForCoverage(t *testing.T) { function TestMain (line 59) | func TestMain(m *testing.M) { FILE: fxevent/logger.go type Logger (line 24) | type Logger interface type nopLogger (line 32) | type nopLogger struct method LogEvent (line 36) | func (nopLogger) LogEvent(Event) {} method String (line 38) | func (nopLogger) String() string { return "NopLogger" } FILE: fxevent/slog.go type SlogLogger (line 35) | type SlogLogger struct method UseContext (line 44) | func (l *SlogLogger) UseContext(ctx context.Context) { method UseLogLevel (line 49) | func (l *SlogLogger) UseLogLevel(level slog.Level) { method UseErrorLevel (line 54) | func (l *SlogLogger) UseErrorLevel(level slog.Level) { method filter (line 58) | func (l *SlogLogger) filter(fields []any) []any { method logEvent (line 74) | func (l *SlogLogger) logEvent(msg string, fields ...any) { method logError (line 78) | func (l *SlogLogger) logError(msg string, fields ...any) { method LogEvent (line 88) | func (l *SlogLogger) LogEvent(event Event) { type slogFieldSkip (line 260) | type slogFieldSkip struct function slogMaybeModuleField (line 262) | func slogMaybeModuleField(name string) slog.Attr { function slogMaybeBool (line 269) | func slogMaybeBool(name string, b bool) slog.Attr { function slogErr (line 276) | func slogErr(err error) slog.Attr { function slogStrings (line 280) | func slogStrings(key string, str []string) slog.Attr { FILE: fxevent/slog_test.go type slogObservableEntry (line 39) | type slogObservableEntry struct method unwrap (line 43) | func (s slogObservableEntry) unwrap(attr slog.Attr, out map[string]any) { method ContextMap (line 60) | func (s slogObservableEntry) ContextMap() map[string]any { type slogObservableLogger (line 70) | type slogObservableLogger struct method Enabled (line 76) | func (s *slogObservableLogger) Enabled(ctx context.Context, level slog... method Handle (line 80) | func (s *slogObservableLogger) Handle(ctx context.Context, record slog... method WithAttrs (line 85) | func (s *slogObservableLogger) WithAttrs(attrs []slog.Attr) slog.Handl... method WithGroup (line 93) | func (s *slogObservableLogger) WithGroup(name string) slog.Handler { method TakeAll (line 97) | func (s *slogObservableLogger) TakeAll() []slogObservableEntry { function newSlogObservableLogger (line 101) | func newSlogObservableLogger(level slog.Level) (*slog.Logger, *slogObser... function TestSlogLogger (line 106) | func TestSlogLogger(t *testing.T) { FILE: fxevent/zap.go type ZapLogger (line 31) | type ZapLogger struct method UseErrorLevel (line 41) | func (l *ZapLogger) UseErrorLevel(level zapcore.Level) { method UseLogLevel (line 46) | func (l *ZapLogger) UseLogLevel(level zapcore.Level) { method logEvent (line 50) | func (l *ZapLogger) logEvent(msg string, fields ...zap.Field) { method logError (line 54) | func (l *ZapLogger) logError(msg string, fields ...zap.Field) { method LogEvent (line 63) | func (l *ZapLogger) LogEvent(event Event) { function moduleField (line 235) | func moduleField(name string) zap.Field { function maybeBool (line 242) | func maybeBool(name string, b bool) zap.Field { FILE: fxevent/zap_test.go function TestZapLogger (line 38) | func TestZapLogger(t *testing.T) { FILE: fxtest/app.go type App (line 31) | type App struct method RequireStart (line 56) | func (app *App) RequireStart() *App { method RequireStop (line 68) | func (app *App) RequireStop() { function New (line 38) | func New(tb TB, opts ...fx.Option) *App { FILE: fxtest/app_test.go function TestApp (line 32) | func TestApp(t *testing.T) { FILE: fxtest/lifecycle.go type panicT (line 38) | type panicT struct method format (line 48) | func (t *panicT) format(s string, args ...any) string { method Logf (line 52) | func (t *panicT) Logf(s string, args ...any) { method Errorf (line 56) | func (t *panicT) Errorf(s string, args ...any) { method FailNow (line 61) | func (t *panicT) FailNow() { type LifecycleOption (line 71) | type LifecycleOption interface function EnforceTimeout (line 78) | func EnforceTimeout(enforce bool) LifecycleOption { type enforceTimeout (line 84) | type enforceTimeout struct method apply (line 88) | func (e *enforceTimeout) apply(lc *Lifecycle) { type Lifecycle (line 97) | type Lifecycle struct method withTimeout (line 125) | func (l *Lifecycle) withTimeout(ctx context.Context, fn func(context.C... method Start (line 151) | func (l *Lifecycle) Start(ctx context.Context) error { method RequireStart (line 157) | func (l *Lifecycle) RequireStart() *Lifecycle { method Stop (line 174) | func (l *Lifecycle) Stop(ctx context.Context) error { method RequireStop (line 180) | func (l *Lifecycle) RequireStop() { method Append (line 191) | func (l *Lifecycle) Append(h fx.Hook) { function NewLifecycle (line 107) | func NewLifecycle(t TB, opts ...LifecycleOption) *Lifecycle { FILE: fxtest/lifecycle_test.go function TestLifecycle (line 37) | func TestLifecycle(t *testing.T) { function TestEnforceTimeout (line 121) | func TestEnforceTimeout(t *testing.T) { function TestLifecycle_OptionalT (line 217) | func TestLifecycle_OptionalT(t *testing.T) { function TestPanicT (line 267) | func TestPanicT(t *testing.T) { function TestMain (line 320) | func TestMain(m *testing.M) { FILE: fxtest/printer.go function NewTestLogger (line 31) | func NewTestLogger(t TB) fxevent.Logger { function WithTestLogger (line 37) | func WithTestLogger(t TB) fx.Option { type testPrinter (line 43) | type testPrinter struct method Printf (line 52) | func (p *testPrinter) Printf(format string, args ...any) { function NewTestPrinter (line 48) | func NewTestPrinter(t TB) fx.Printer { FILE: fxtest/printer_test.go function TestNewTestPrinter (line 29) | func TestNewTestPrinter(t *testing.T) { FILE: fxtest/tb.go type TB (line 25) | type TB interface FILE: fxtest/tb_test.go type tb (line 32) | type tb struct method FailNow (line 42) | func (t *tb) FailNow() { method Errorf (line 46) | func (t *tb) Errorf(format string, args ...any) { method Logf (line 51) | func (t *tb) Logf(format string, args ...any) { function newTB (line 38) | func newTB() *tb { FILE: inout_test.go function TestIn (line 32) | func TestIn(t *testing.T) { function TestOut (line 41) | func TestOut(t *testing.T) { function TestOptionalTypes (line 50) | func TestOptionalTypes(t *testing.T) { function TestNamedTypes (line 93) | func TestNamedTypes(t *testing.T) { function TestIgnoreUnexported (line 145) | func TestIgnoreUnexported(t *testing.T) { FILE: internal/e2e/shutdowner_run_exitcode/main.go function main (line 27) | func main() { FILE: internal/e2e/shutdowner_run_exitcode/main_test.go function TestMain (line 36) | func TestMain(m *testing.M) { function TestShutdownExitCode (line 52) | func TestShutdownExitCode(t *testing.T) { FILE: internal/e2e/shutdowner_wait_exitcode/main.go function main (line 32) | func main() { FILE: internal/e2e/shutdowner_wait_exitcode/main_test.go function TestMain (line 36) | func TestMain(m *testing.M) { function TestShutdownExitCode (line 52) | func TestShutdownExitCode(t *testing.T) { FILE: internal/fxclock/clock.go type Clock (line 32) | type Clock interface type systemClock (line 42) | type systemClock struct method Now (line 44) | func (systemClock) Now() time.Time { method Since (line 48) | func (systemClock) Since(t time.Time) time.Duration { method Sleep (line 52) | func (systemClock) Sleep(d time.Duration) { method WithTimeout (line 56) | func (systemClock) WithTimeout(ctx context.Context, d time.Duration) (... type Mock (line 68) | type Mock struct method Now (line 91) | func (c *Mock) Now() time.Time { method Since (line 99) | func (c *Mock) Since(t time.Time) time.Duration { method Sleep (line 107) | func (c *Mock) Sleep(d time.Duration) { method WithTimeout (line 119) | func (c *Mock) WithTimeout(ctx context.Context, d time.Duration) (cont... method runAt (line 180) | func (c *Mock) runAt(t time.Time, fn func()) { method AwaitScheduled (line 190) | func (c *Mock) AwaitScheduled(n int) { method Add (line 220) | func (c *Mock) Add(d time.Duration) { function NewMock (line 84) | func NewMock() *Mock { type deadlineCtx (line 145) | type deadlineCtx struct method Deadline (line 158) | func (c *deadlineCtx) Deadline() (deadline time.Time, ok bool) { retur... method Done (line 159) | func (c *deadlineCtx) Done() <-chan struct{} { retur... method Value (line 160) | func (c *deadlineCtx) Value(key any) any { retur... method Err (line 162) | func (c *deadlineCtx) Err() error { method cancel (line 168) | func (c *deadlineCtx) cancel(err error) { type waiter (line 206) | type waiter struct FILE: internal/fxclock/clock_test.go function TestSystemClock (line 32) | func TestSystemClock(t *testing.T) { function TestMockClock (line 37) | func TestMockClock(t *testing.T) { function testClock (line 42) | func testClock(t *testing.T, clock Clock, advance func(d time.Duration)) { function TestMock_Sleep (line 124) | func TestMock_Sleep(t *testing.T) { function TestMock_AddNegative (line 162) | func TestMock_AddNegative(t *testing.T) { function TestMock_ManySleepers (line 167) | func TestMock_ManySleepers(t *testing.T) { FILE: internal/fxlog/default.go function DefaultLogger (line 30) | func DefaultLogger(w io.Writer) fxevent.Logger { FILE: internal/fxlog/default_test.go function TestNew (line 31) | func TestNew(t *testing.T) { function TestMain (line 39) | func TestMain(m *testing.M) { FILE: internal/fxlog/foovendor/foovendor.go function New (line 24) | func New() string { return "foovendor" } FILE: internal/fxlog/sample.git/sample.go function New (line 24) | func New() (string, error) { FILE: internal/fxlog/spy.go type Events (line 31) | type Events method Len (line 34) | func (es Events) Len() int { return len(es) } method SelectByTypeName (line 38) | func (es Events) SelectByTypeName(name string) Events { type Spy (line 50) | type Spy struct method LogEvent (line 58) | func (s *Spy) LogEvent(event fxevent.Event) { method Events (line 65) | func (s *Spy) Events() Events { method EventTypes (line 75) | func (s *Spy) EventTypes() []string { method Reset (line 87) | func (s *Spy) Reset() { FILE: internal/fxlog/spy_test.go function TestSpy (line 31) | func TestSpy(t *testing.T) { FILE: internal/fxreflect/fxreflect.go function sanitize (line 38) | func sanitize(function string) string { function Caller (line 50) | func Caller() string { function FuncName (line 55) | func FuncName(fn any) string { function shouldIgnoreFrame (line 68) | func shouldIgnoreFrame(f Frame) bool { FILE: internal/fxreflect/fxreflect_test.go function TestCaller (line 30) | func TestCaller(t *testing.T) { function someFunc (line 36) | func someFunc() {} function TestFuncName (line 38) | func TestFuncName(t *testing.T) { function TestSanitizeFuncNames (line 67) | func TestSanitizeFuncNames(t *testing.T) { function TestMain (line 100) | func TestMain(m *testing.M) { FILE: internal/fxreflect/stack.go type Frame (line 31) | type Frame struct method String (line 44) | func (f Frame) String() string { constant _defaultCallersDepth (line 72) | _defaultCallersDepth = 8 type Stack (line 86) | type Stack method String (line 91) | func (fs Stack) String() string { method Strings (line 99) | func (fs Stack) Strings() []string { method Format (line 108) | func (fs Stack) Format(w fmt.State, c rune) { method CallerName (line 123) | func (fs Stack) CallerName() string { function CallerStack (line 137) | func CallerStack(skip, depth int) Stack { FILE: internal/fxreflect/stack_test.go function TestStack (line 31) | func TestStack(t *testing.T) { function TestDeepStack (line 68) | func TestDeepStack(t *testing.T) { function TestStackCallerName (line 87) | func TestStackCallerName(t *testing.T) { function TestFrameString (line 169) | func TestFrameString(t *testing.T) { function TestStackFormat (line 223) | func TestStackFormat(t *testing.T) { FILE: internal/leaky_test/leaky_test.go function TestRecoverFromPanicsOption (line 35) | func TestRecoverFromPanicsOption(t *testing.T) { FILE: internal/lifecycle/lifecycle.go type Callable (line 67) | type Callable interface function Wrap (line 72) | func Wrap[T Callable](x T) (ContextErrorFunc, string) { type Hook (line 117) | type Hook struct type appState (line 126) | type appState method String (line 136) | func (as appState) String() string { constant stopped (line 129) | stopped appState = iota constant starting (line 130) | starting constant incompleteStart (line 131) | incompleteStart constant started (line 132) | started constant stopping (line 133) | stopping type Lifecycle (line 154) | type Lifecycle struct method Append (line 172) | func (l *Lifecycle) Append(hook Hook) { method Start (line 182) | func (l *Lifecycle) Start(ctx context.Context) error { method runStartHook (line 236) | func (l *Lifecycle) runStartHook(ctx context.Context, hook Hook) (runt... method Stop (line 262) | func (l *Lifecycle) Stop(ctx context.Context) error { method runStopHook (line 321) | func (l *Lifecycle) runStopHook(ctx context.Context, hook Hook) (runti... method RunningHookCaller (line 347) | func (l *Lifecycle) RunningHookCaller() string { function New (line 167) | func New(logger fxevent.Logger, clock fxclock.Clock) *Lifecycle { type HookRecord (line 354) | type HookRecord struct type HookRecords (line 361) | type HookRecords method Len (line 363) | func (rs HookRecords) Len() int { method Less (line 367) | func (rs HookRecords) Less(i, j int) bool { method Swap (line 372) | func (rs HookRecords) Swap(i, j int) { method String (line 377) | func (rs HookRecords) String() string { method Format (line 387) | func (rs HookRecords) Format(w fmt.State, c rune) { FILE: internal/lifecycle/lifecycle_test.go function testLogger (line 43) | func testLogger(t *testing.T) fxevent.Logger { function TestLifecycleStart (line 47) | func TestLifecycleStart(t *testing.T) { function TestLifecycleStop (line 161) | func TestLifecycleStop(t *testing.T) { function TestHookRecordsFormat (line 333) | func TestHookRecordsFormat(t *testing.T) { function TestMain (line 378) | func TestMain(m *testing.M) { FILE: internal/testutil/writer.go type TestingT (line 28) | type TestingT interface type WriteSyncer (line 34) | type WriteSyncer struct method Write (line 39) | func (w WriteSyncer) Write(bs []byte) (int, error) { method Sync (line 45) | func (WriteSyncer) Sync() error { return nil } FILE: internal/testutil/writer_test.go type spy (line 32) | type spy struct method Clear (line 34) | func (s *spy) Clear() { s.Logs = nil } method Logf (line 36) | func (s *spy) Logf(msg string, args ...any) { function TestWriteSyncer (line 40) | func TestWriteSyncer(t *testing.T) { FILE: invoke.go function Invoke (line 64) | func Invoke(funcs ...any) Option { type invokeOption (line 71) | type invokeOption struct method apply (line 76) | func (o invokeOption) apply(mod *module) { method String (line 85) | func (o invokeOption) String() string { function runInvoke (line 93) | func runInvoke(c container, i invoke) error { FILE: lifecycle.go type HookFunc (line 30) | type HookFunc interface type Lifecycle (line 37) | type Lifecycle interface type Hook (line 45) | type Hook struct function StartHook (line 77) | func StartHook[T HookFunc](start T) Hook { function StopHook (line 110) | func StopHook[T HookFunc](stop T) Hook { function StartStopHook (line 122) | func StartStopHook[T1 HookFunc, T2 HookFunc](start T1, stop T2) Hook { type lifecycleWrapper (line 136) | type lifecycleWrapper struct method Append (line 140) | func (l *lifecycleWrapper) Append(h Hook) { FILE: log.go type logBuffer (line 29) | type logBuffer struct method LogEvent (line 35) | func (l *logBuffer) LogEvent(event fxevent.Event) { method Connect (line 44) | func (l *logBuffer) Connect(logger fxevent.Logger) { FILE: log_test.go function TestLogBufferConnect (line 34) | func TestLogBufferConnect(t *testing.T) { function TestLogBufferLog (line 48) | func TestLogBufferLog(t *testing.T) { function TestWithLoggerDecorate (line 64) | func TestWithLoggerDecorate(t *testing.T) { FILE: module.go type container (line 37) | type container interface function Module (line 78) | func Module(name string, opts ...Option) Option { type moduleOption (line 87) | type moduleOption struct method String (line 93) | func (o moduleOption) String() string { method apply (line 97) | func (o moduleOption) apply(mod *module) { type module (line 120) | type module struct method build (line 150) | func (m *module) build(app *App, root *dig.Container) { method provideAll (line 173) | func (m *module) provideAll() { method provide (line 183) | func (m *module) provide(p provide) { method supply (line 235) | func (m *module) supply(p provide) { method installAllEventLoggers (line 270) | func (m *module) installAllEventLoggers() { method installEventLogger (line 290) | func (m *module) installEventLogger(buffer *logBuffer) (err error) { method invokeAll (line 313) | func (m *module) invokeAll() error { method invoke (line 329) | func (m *module) invoke(i invoke) (err error) { method decorateAll (line 345) | func (m *module) decorateAll() error { method decorate (line 360) | func (m *module) decorate(d decorator) (err error) { method replace (line 405) | func (m *module) replace(d decorator) error { type scope (line 138) | type scope interface FILE: module_test.go function TestModuleSuccess (line 39) | func TestModuleSuccess(t *testing.T) { function TestModuleFailures (line 437) | func TestModuleFailures(t *testing.T) { FILE: populate.go function Populate (line 64) | func Populate(targets ...any) Option { FILE: populate_example_test.go function ExamplePopulate (line 30) | func ExamplePopulate() { FILE: populate_test.go function TestPopulate (line 34) | func TestPopulate(t *testing.T) { function TestPopulateErrors (line 263) | func TestPopulateErrors(t *testing.T) { function TestPopulateValidateApp (line 332) | func TestPopulateValidateApp(t *testing.T) { FILE: printer_writer.go type printerWriter (line 25) | type printerWriter struct method Write (line 33) | func (w *printerWriter) Write(b []byte) (n int, err error) { function writerFromPrinter (line 29) | func writerFromPrinter(p Printer) io.Writer { FILE: provide.go function Provide (line 64) | func Provide(constructors ...any) Option { type provideOption (line 71) | type provideOption struct method apply (line 76) | func (o provideOption) apply(mod *module) { method String (line 114) | func (o provideOption) String() string { type privateOption (line 97) | type privateOption struct function runProvide (line 122) | func runProvide(c container, p provide, opts ...dig.ProvideOption) error { FILE: replace.go function Replace (line 77) | func Replace(values ...any) Option { type replaceOption (line 99) | type replaceOption struct method apply (line 105) | func (o replaceOption) apply(m *module) { method String (line 116) | func (o replaceOption) String() string { function newReplaceDecorator (line 125) | func newReplaceDecorator(value any) (any, reflect.Type) { FILE: replace_test.go function TestReplaceSuccess (line 33) | func TestReplaceSuccess(t *testing.T) { function TestReplaceFailure (line 140) | func TestReplaceFailure(t *testing.T) { FILE: shutdown.go type Shutdowner (line 31) | type Shutdowner interface type ShutdownOption (line 37) | type ShutdownOption interface type exitCodeOption (line 41) | type exitCodeOption method apply (line 43) | func (code exitCodeOption) apply(s *shutdowner) { function ExitCode (line 53) | func ExitCode(code int) ShutdownOption { type shutdownTimeoutOption (line 57) | type shutdownTimeoutOption method apply (line 59) | func (shutdownTimeoutOption) apply(*shutdowner) {} function ShutdownTimeout (line 69) | func ShutdownTimeout(timeout time.Duration) ShutdownOption { type shutdowner (line 73) | type shutdowner struct method Shutdown (line 81) | func (s *shutdowner) Shutdown(opts ...ShutdownOption) error { method shutdowner (line 92) | func (app *App) shutdowner() Shutdowner { FILE: shutdown_test.go function TestShutdown (line 36) | func TestShutdown(t *testing.T) { function TestDataRace (line 174) | func TestDataRace(t *testing.T) { FILE: signal.go type ShutdownSignal (line 37) | type ShutdownSignal struct method String (line 43) | func (sig ShutdownSignal) String() string { function newSignalReceivers (line 47) | func newSignalReceivers() signalReceivers { type signalReceivers (line 58) | type signalReceivers struct method relayer (line 79) | func (recv *signalReceivers) relayer() { method running (line 96) | func (recv *signalReceivers) running() bool { method Start (line 100) | func (recv *signalReceivers) Start() { method Stop (line 115) | func (recv *signalReceivers) Stop(ctx context.Context) error { method Done (line 140) | func (recv *signalReceivers) Done() <-chan os.Signal { method Wait (line 144) | func (recv *signalReceivers) Wait() <-chan ShutdownSignal { FILE: signal_test.go function assertUnsentSignalError (line 34) | func assertUnsentSignalError( function TestSignal (line 49) | func TestSignal(t *testing.T) { FILE: supply.go function Supply (line 82) | func Supply(values ...any) Option { type supplyOption (line 116) | type supplyOption struct method apply (line 123) | func (o supplyOption) apply(m *module) { method String (line 135) | func (o supplyOption) String() string { function newSupplyConstructor (line 144) | func newSupplyConstructor(value any) (any, reflect.Type) { FILE: supply_test.go function TestSupply (line 38) | func TestSupply(t *testing.T) { FILE: tools/analysis/passes/allfxevents/analysis.go function run (line 61) | func run(pass *analysis.Pass) (interface{}, error) { type visitor (line 80) | type visitor struct method Visit (line 91) | func (v *visitor) Visit(n ast.Node, push bool) (recurse bool) { method funcDeclEnter (line 132) | func (v *visitor) funcDeclEnter(n *ast.FuncDecl) bool { method funcDeclExit (line 152) | func (v *visitor) funcDeclExit(n *ast.FuncDecl) bool { function findPackage (line 184) | func findPackage(pkg *types.Package, importPath string) (_ *types.Packag... type fxevent (line 200) | type fxevent struct function inspectFxevent (line 208) | func inspectFxevent(pkg *types.Package) fxevent { type typeSet (line 245) | type typeSet struct method Len (line 247) | func (ts *typeSet) Len() int { method Put (line 252) | func (ts *typeSet) Put(t types.Type) { method Remove (line 258) | func (ts *typeSet) Remove(t types.Type) (found bool) { method Iterate (line 263) | func (ts *typeSet) Iterate(f func(types.Type)) { method Clone (line 269) | func (ts *typeSet) Clone() *typeSet { function emptyQualifier (line 277) | func emptyQualifier(*types.Package) string { FILE: tools/analysis/passes/allfxevents/analysis_test.go function TestAnalyzer (line 29) | func TestAnalyzer(t *testing.T) { FILE: tools/analysis/passes/allfxevents/testdata/src/a/full.go type fullLogger (line 9) | type fullLogger struct method LogEvent (line 11) | func (*fullLogger) LogEvent(ev fxevent.Event) { FILE: tools/analysis/passes/allfxevents/testdata/src/a/nop.go type nopLogger (line 5) | type nopLogger struct method LogEvent (line 7) | func (nopLogger) LogEvent(fxevent.Event) { FILE: tools/analysis/passes/allfxevents/testdata/src/a/not_a_logger.go type notALogger (line 9) | type notALogger struct method LogEvent (line 14) | func (*notALogger) LogEvent(ev fxevent.Event) error { FILE: tools/analysis/passes/allfxevents/testdata/src/a/partial_test.go type partialLogger (line 11) | type partialLogger struct method LogEvent (line 13) | func (partialLogger) LogEvent(ev fxevent.Event) { FILE: tools/analysis/passes/allfxevents/testdata/src/a/ptr.go type ptrLogger (line 9) | type ptrLogger struct method LogEvent (line 11) | func (*ptrLogger) LogEvent(ev fxevent.Event) { // want `\*ptrLogger do... FILE: tools/analysis/passes/allfxevents/testdata/src/a/value.go type valueLogger (line 10) | type valueLogger struct method LogEvent (line 14) | func (l valueLogger) LogEvent(ev fxevent.Event) { // want `valueLogger... FILE: tools/analysis/passes/allfxevents/testdata/src/b/fxevent/logger.go type Event (line 4) | type Event struct type Logger (line 5) | type Logger interface FILE: tools/analysis/passes/allfxevents/testdata/src/b/not_real_fxevent.go type Logger (line 8) | type Logger struct method LogEvent (line 12) | func (Logger) LogEvent(ev fxevent.Event) { FILE: tools/analysis/passes/allfxevents/testdata/src/go.uber.org/fx/fxevent/fxevent.go type Logger (line 7) | type Logger interface type Event (line 8) | type Event interface type Foo (line 9) | type Foo struct method event (line 15) | func (*Foo) event() {} type Bar (line 10) | type Bar struct method event (line 16) | func (*Bar) event() {} type Baz (line 11) | type Baz struct method event (line 17) | func (*Baz) event() {} type Qux (line 12) | type Qux struct method event (line 18) | func (*Qux) event() {} FILE: tools/analysis/passes/allfxevents/testdata/src/go.uber.org/fx/fxevent/partial.go type partialLogger (line 4) | type partialLogger struct method LogEvent (line 6) | func (partialLogger) LogEvent(ev Event) { // want `partialLogger doesn... FILE: tools/cmd/fxlint/main.go function main (line 33) | func main() { FILE: version.go constant Version (line 24) | Version = "1.25.0-dev"