Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Launch ¶
Launch is the entry point for a service. This function should be called from the main generated by shana toolchain.
func OnConnect ¶
func OnConnect(f Func)
OnConnect registers f as a connecting service callback. All connecting service callbacks will be called before any start-up callbacks and after all config data initialized.
func OnShutdown ¶
func OnShutdown(f Func)
OnShutdown registers f as an shutdown callback. All shutdown callbacks will be called after service is gracefully shutdown and about to exit.
It's not guaranteed to be called as a service can be killed by SIGKILL.
Types ¶
Click to show internal directories.
Click to hide internal directories.