Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrpcServerWithActuator ¶ added in v0.4.0
func NewGrpcServerWithActuator(srv mgrpc.RegisteredServer) (mgrpc.RegisteredServer, error)
func SetAppInfoSingleton ¶
func SetAppInfoSingleton(a *AppInfo)
Types ¶
type AppContributor ¶
type AppContributor info.Contributor
func GetAppContributor ¶
func GetAppContributor() AppContributor
type AppInfo ¶
type AppInfo struct { // The name of the program. Defaults to path.Base(os.Args[0]) Name string `json:"name"` // Version of the program Version string `json:"version"` // Compilation date Compiled time.Time `json:"compiled,omitempty"` }
func GetAppInfoSingleton ¶
func GetAppInfoSingleton() AppInfo
func NewAppInfo ¶
func NewAppInfo() *AppInfo
type GrpcServerWithActuator ¶ added in v0.4.0
type GrpcServerWithActuator struct {
// contains filtered or unexported fields
}
func (*GrpcServerWithActuator) GracefulStop ¶ added in v0.4.0
func (s *GrpcServerWithActuator) GracefulStop()
func (*GrpcServerWithActuator) Serve ¶ added in v0.4.0
func (s *GrpcServerWithActuator) Serve(ln net.Listener) (err error)
func (*GrpcServerWithActuator) Stop ¶ added in v0.4.0
func (s *GrpcServerWithActuator) Stop()
type RuntimeIndicator ¶
type RuntimeIndicator interface { Report() (status health.Status, details map[string]interface{}) SetUnhealthy(reason string) SetHealthy(reason string) SetStarted() }
func GetRuntimeLivenessIndicator ¶
func GetRuntimeLivenessIndicator() RuntimeIndicator
func GetRuntimeReadinessIndicator ¶
func GetRuntimeReadinessIndicator() RuntimeIndicator
Click to show internal directories.
Click to hide internal directories.