health

package
v2.34.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module is a module that provides grpc health server for checking services status.

func RegisterHealthServer

func RegisterHealthServer(in RegisterHealthServerIn)

RegisterHealthServer registers health server to grpc_health_v1 api and sets default statuses.

Types

type RegisterHealthServerIn added in v2.16.0

type RegisterHealthServerIn struct {
	fx.In
	Server       *grpc.Server `name:"default"`
	HealthServer *health.Server
}

RegisterHealthServerIn bundles and annotates parameters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL