Documentation ¶
Overview ¶
Package runconfig stores cloudprober config that is specific to a single invocation. e.g., servers injected by external cloudprober users.
Index ¶
- func BuildTimestamp() time.Time
- func DefaultGRPCServer() *grpc.Server
- func DefaultHTTPServeMux() *http.ServeMux
- func LocalRDSServer() *rdsserver.Server
- func SetBuildTimestamp(ts time.Time)
- func SetDefaultGRPCServer(s *grpc.Server)
- func SetDefaultHTTPServeMux(mux *http.ServeMux)
- func SetLocalRDSServer(srv *rdsserver.Server)
- func SetVersion(version string)
- func Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTimestamp ¶ added in v0.12.1
BuildTimestamp returns the recorded build timestamp.
func DefaultGRPCServer ¶
DefaultGRPCServer returns the configured gRPC server and nil if gRPC server was not set.
func DefaultHTTPServeMux ¶ added in v0.11.8
DefaultHTTPServeMux returns the default HTTP ServeMux.
func LocalRDSServer ¶ added in v0.10.5
LocalRDSServer returns the local RDS server, set through the SetLocalRDSServer() call.
func SetBuildTimestamp ¶ added in v0.12.1
SetBuildTimestamp sets the cloudprober build timestamp.
func SetDefaultGRPCServer ¶
SetDefaultGRPCServer sets the default gRPC server.
func SetDefaultHTTPServeMux ¶ added in v0.11.8
SetDefaultHTTPServeMux stores the default HTTP ServeMux in runconfig. This allows other modules to add their own handlers to the common ServeMux.
func SetLocalRDSServer ¶ added in v0.10.5
SetLocalRDSServer stores local RDS server in the runconfig. It can later be retrieved throuhg LocalRDSServer().
Types ¶
This section is empty.