From 98c4089d15dff4d4aafaee40e429302a242ee0ca Mon Sep 17 00:00:00 2001 From: Chris Simmons Date: Sun, 5 Jan 2025 14:35:14 +1300 Subject: [PATCH] [v3 alpha] docs: add note that internal service methods are not included in generated bindings (#3982) add note that internal service methods are not bound --- docs/src/content/docs/learn/services.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/src/content/docs/learn/services.mdx b/docs/src/content/docs/learn/services.mdx index 2aedfed04..e53b5942c 100644 --- a/docs/src/content/docs/learn/services.mdx +++ b/docs/src/content/docs/learn/services.mdx @@ -54,7 +54,12 @@ app := application.New(application.Options{ ## Optional Methods -Services can implement optional methods to hook into the application lifecycle: +Services can implement optional methods to hook into the application lifecycle. + +:::note +The `OnStartup`, `OnShutdown`, and `ServeHTTP` methods are not included in the +bindings generated for a service, so they are not exposed to your frontend. +::: ### Name