Documentation ¶
Overview ¶
Package server provides an helper type that provides access to cloud features, error handling, logging and configuration management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server holds cloud features clients, a logger and the configuration.
func NewServer ¶
func NewServer( cfg config.Config, serviceName string, featureProvider ...features.FeatureProvider, ) (*Server, error)
NewServer creates a new server. It setup a dedicated logger using the serviceName parameter. A custom feature provider can be given. If 0, or more than one is given, it will fallback to the default provider. The default provider includes a metadata client, the error reporting and the secret manager.
Click to show internal directories.
Click to hide internal directories.