Documentation
¶
Overview ¶
Package eventsource implements the eventsource.example microservice.
The event source microservice fires events that are caught by the event sink microservice.
Index ¶
Constants ¶
const Hostname = "eventsource.example"
Hostname is the default hostname of the microservice: eventsource.example.
const SourceCodeSHA256 = "ecaf57be7839c11e4b104d331e64810762121a1e9875b8f0cb9c231ae4dc69a6"
const Timestamp = "2025-11-02T17:28:51.448877Z"
const Version = 256
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock = intermediate.Mock
Mock is a mockable version of the eventsource.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 eventsource.example microservice.
The event source microservice fires events that are caught by the event sink microservice.
func NewService ¶
func NewService() *Service
NewService creates a new eventsource.example microservice.
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 |
|---|---|
|
Package eventsourceapi implements the public API of the eventsource.example microservice, including clients and data structures.
|
Package eventsourceapi implements the public API of the eventsource.example microservice, including clients and data structures. |
|
Package intermediate serves as the foundation of the eventsource.example microservice.
|
Package intermediate serves as the foundation of the eventsource.example microservice. |