Documentation
¶
Overview ¶
Package control implements the control.core microservice.
This microservice is created for the sake of generating the client API for the :888 control subscriptions. The microservice itself does nothing and should not be included in applications.
Index ¶
- Constants
- type Mock
- type Service
- func (svc *Service) ConfigRefresh(ctx context.Context) (err error)
- func (svc *Service) Init(initializer func(svc *Service)) *Service
- func (svc *Service) OnShutdown(ctx context.Context) (err error)
- func (svc *Service) OnStartup(ctx context.Context) (err error)
- func (svc *Service) Ping(ctx context.Context) (pong int, err error)
- func (svc *Service) Trace(ctx context.Context, id string) (err error)
Constants ¶
const Hostname = "control.core"
Hostname is the default hostname of the microservice: control.core.
const SourceCodeSHA256 = "c3164e9d0c957aa6effde2f0361bf0e08e413c90710ebf6a263b2331e781604b"
const Timestamp = "2024-08-01T15:49:24.02646Z"
const Version = 173
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock = intermediate.Mock
Mock is a mockable version of the control.core microservice, allowing functions, event sinks and web handlers to be mocked.
type Service ¶
type Service struct {
*intermediate.Intermediate // DO NOT REMOVE
}
Service implements the control.core microservice.
This microservice is created for the sake of generating the client API for the :888 control subscriptions. The microservice itself does nothing and should not be included in applications.
func (*Service) ConfigRefresh ¶
ConfigRefresh pulls the latest config values from the configurator service.
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
|
|
Package controlapi implements the public API of the control.core microservice, including clients and data structures.
|
Package controlapi implements the public API of the control.core microservice, including clients and data structures. |
Package intermediate serves as the foundation of the control.core microservice.
|
Package intermediate serves as the foundation of the control.core microservice. |