Documentation
¶
Overview ¶
Package helloworld implements the helloworld.example microservice.
The HelloWorld microservice demonstrates the classic minimalist example.
Index ¶
Constants ¶
const Hostname = "helloworld.example"
Hostname is the default hostname of the microservice: helloworld.example.
const SourceCodeSHA256 = "8410b0d2b51538d6018c5b88e3ed7069d2a5698201a24bba1a2c8d83618ad92d"
const Timestamp = "2025-10-12T21:58:12.578117Z"
const Version = 61
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock = intermediate.Mock
Mock is a mockable version of the helloworld.example microservice, allowing functions, event sinks and web handlers to be mocked.
type Service ¶
type Service struct {
*intermediate.Intermediate // DO NOT REMOVE
}
Service implements the helloworld.example microservice.
The HelloWorld microservice demonstrates the classic minimalist example.
func NewService ¶
func NewService() *Service
NewService creates a new helloworld.example microservice.
func (*Service) HelloWorld ¶
HelloWorld prints the classic greeting.
func (*Service) Init ¶
Init enables a single-statement pattern for initializing the microservice.
svc.Init(func(svc Service) {
svc.SetGreeting("Hello")
})
func (*Service) OnShutdown ¶
OnShutdown is called when the microservice is shut down.
Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
helloworld
command
|
|
|
Package helloworldapi implements the public API of the helloworld.example microservice, including clients and data structures.
|
Package helloworldapi implements the public API of the helloworld.example microservice, including clients and data structures. |
|
Package intermediate serves as the foundation of the helloworld.example microservice.
|
Package intermediate serves as the foundation of the helloworld.example microservice. |