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 = "fb8492b0dde4b7aaa948caf7ae0be0b0a010915a14d4ab0063020d9074f6ccba"
const Timestamp = "2024-08-01T15:49:27.310407Z"
const Version = 204
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 |
|---|---|
|
app
|
|
|
eventsource
command
|
|
|
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. |