Documentation
¶
Index ¶
- type SystemServiceWithPrometheus
- func (_d SystemServiceWithPrometheus) GetNetworkConfig(ctx context.Context) (systemNetwork api.SystemNetwork)
- func (_d SystemServiceWithPrometheus) GetSecurityConfig(ctx context.Context) (systemSecurity api.SystemSecurity)
- func (_d SystemServiceWithPrometheus) GetUpdatesConfig(ctx context.Context) (systemUpdates api.SystemUpdates)
- func (_d SystemServiceWithPrometheus) UpdateCertificate(ctx context.Context, certificatePEM string, keyPEM string) (err error)
- func (_d SystemServiceWithPrometheus) UpdateNetworkConfig(ctx context.Context, cfg api.SystemNetworkPut) (err error)
- func (_d SystemServiceWithPrometheus) UpdateSecurityConfig(ctx context.Context, cfg api.SystemSecurityPut) (err error)
- func (_d SystemServiceWithPrometheus) UpdateUpdatesConfig(ctx context.Context, cfg api.SystemUpdatesPut) (err error)
- type SystemServiceWithSlog
- func (_d SystemServiceWithSlog) GetNetworkConfig(ctx context.Context) (systemNetwork api.SystemNetwork)
- func (_d SystemServiceWithSlog) GetSecurityConfig(ctx context.Context) (systemSecurity api.SystemSecurity)
- func (_d SystemServiceWithSlog) GetUpdatesConfig(ctx context.Context) (systemUpdates api.SystemUpdates)
- func (_d SystemServiceWithSlog) UpdateCertificate(ctx context.Context, certificatePEM string, keyPEM string) (err error)
- func (_d SystemServiceWithSlog) UpdateNetworkConfig(ctx context.Context, cfg api.SystemNetworkPut) (err error)
- func (_d SystemServiceWithSlog) UpdateSecurityConfig(ctx context.Context, cfg api.SystemSecurityPut) (err error)
- func (_d SystemServiceWithSlog) UpdateUpdatesConfig(ctx context.Context, cfg api.SystemUpdatesPut) (err error)
- type SystemServiceWithSlogOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemServiceWithPrometheus ¶
type SystemServiceWithPrometheus struct {
// contains filtered or unexported fields
}
SystemServiceWithPrometheus implements system.SystemService interface with all methods wrapped with Prometheus metrics.
func NewSystemServiceWithPrometheus ¶
func NewSystemServiceWithPrometheus(base system.SystemService, instanceName string) SystemServiceWithPrometheus
NewSystemServiceWithPrometheus returns an instance of the system.SystemService decorated with prometheus summary metric.
func (SystemServiceWithPrometheus) GetNetworkConfig ¶
func (_d SystemServiceWithPrometheus) GetNetworkConfig(ctx context.Context) (systemNetwork api.SystemNetwork)
GetNetworkConfig implements system.SystemService.
func (SystemServiceWithPrometheus) GetSecurityConfig ¶
func (_d SystemServiceWithPrometheus) GetSecurityConfig(ctx context.Context) (systemSecurity api.SystemSecurity)
GetSecurityConfig implements system.SystemService.
func (SystemServiceWithPrometheus) GetUpdatesConfig ¶
func (_d SystemServiceWithPrometheus) GetUpdatesConfig(ctx context.Context) (systemUpdates api.SystemUpdates)
GetUpdatesConfig implements system.SystemService.
func (SystemServiceWithPrometheus) UpdateCertificate ¶
func (_d SystemServiceWithPrometheus) UpdateCertificate(ctx context.Context, certificatePEM string, keyPEM string) (err error)
UpdateCertificate implements system.SystemService.
func (SystemServiceWithPrometheus) UpdateNetworkConfig ¶
func (_d SystemServiceWithPrometheus) UpdateNetworkConfig(ctx context.Context, cfg api.SystemNetworkPut) (err error)
UpdateNetworkConfig implements system.SystemService.
func (SystemServiceWithPrometheus) UpdateSecurityConfig ¶
func (_d SystemServiceWithPrometheus) UpdateSecurityConfig(ctx context.Context, cfg api.SystemSecurityPut) (err error)
UpdateSecurityConfig implements system.SystemService.
func (SystemServiceWithPrometheus) UpdateUpdatesConfig ¶
func (_d SystemServiceWithPrometheus) UpdateUpdatesConfig(ctx context.Context, cfg api.SystemUpdatesPut) (err error)
UpdateUpdatesConfig implements system.SystemService.
type SystemServiceWithSlog ¶
type SystemServiceWithSlog struct {
// contains filtered or unexported fields
}
SystemServiceWithSlog implements system.SystemService that is instrumented with slog logger.
func NewSystemServiceWithSlog ¶
func NewSystemServiceWithSlog(base system.SystemService, log *slog.Logger, opts ...SystemServiceWithSlogOption) SystemServiceWithSlog
NewSystemServiceWithSlog instruments an implementation of the system.SystemService with simple logging.
func (SystemServiceWithSlog) GetNetworkConfig ¶
func (_d SystemServiceWithSlog) GetNetworkConfig(ctx context.Context) (systemNetwork api.SystemNetwork)
GetNetworkConfig implements system.SystemService.
func (SystemServiceWithSlog) GetSecurityConfig ¶
func (_d SystemServiceWithSlog) GetSecurityConfig(ctx context.Context) (systemSecurity api.SystemSecurity)
GetSecurityConfig implements system.SystemService.
func (SystemServiceWithSlog) GetUpdatesConfig ¶
func (_d SystemServiceWithSlog) GetUpdatesConfig(ctx context.Context) (systemUpdates api.SystemUpdates)
GetUpdatesConfig implements system.SystemService.
func (SystemServiceWithSlog) UpdateCertificate ¶
func (_d SystemServiceWithSlog) UpdateCertificate(ctx context.Context, certificatePEM string, keyPEM string) (err error)
UpdateCertificate implements system.SystemService.
func (SystemServiceWithSlog) UpdateNetworkConfig ¶
func (_d SystemServiceWithSlog) UpdateNetworkConfig(ctx context.Context, cfg api.SystemNetworkPut) (err error)
UpdateNetworkConfig implements system.SystemService.
func (SystemServiceWithSlog) UpdateSecurityConfig ¶
func (_d SystemServiceWithSlog) UpdateSecurityConfig(ctx context.Context, cfg api.SystemSecurityPut) (err error)
UpdateSecurityConfig implements system.SystemService.
func (SystemServiceWithSlog) UpdateUpdatesConfig ¶
func (_d SystemServiceWithSlog) UpdateUpdatesConfig(ctx context.Context, cfg api.SystemUpdatesPut) (err error)
UpdateUpdatesConfig implements system.SystemService.
type SystemServiceWithSlogOption ¶
type SystemServiceWithSlogOption func(s *SystemServiceWithSlog)
func SystemServiceWithSlogWithInformativeErrFunc ¶
func SystemServiceWithSlogWithInformativeErrFunc(isInformativeErrFunc func(error) bool) SystemServiceWithSlogOption