Documentation ¶
Index ¶
- Constants
- func BytesToString(data []byte, encoding int) (string, error)
- func CheckDBConnection(ctx context.Context, runtime *sharedpb.SignedRuntimeInfoRequest, ...) (*sharedpb.RuntimeInfoReport, error)
- func RegisterHealthCheckService(s *grpc.Server)
- func StringToBytes(str string, encoding int) ([]byte, error)
- type GrpcHealthServer
Constants ¶
View Source
const ( Text = iota + 1 Base64 )
View Source
const DBURLDNE = "DB URL does not exist !!"
DBURLDNE database does not exist or unreachable
View Source
const RDURLDNE = "RD URL does not exist !!"
RDURLDNE redis does not exist or unreachable
Variables ¶
This section is empty.
Functions ¶
func CheckDBConnection ¶ added in v0.4.2
func CheckDBConnection(ctx context.Context, runtime *sharedpb.SignedRuntimeInfoRequest, connection db.ConnectionUrls) (*sharedpb.RuntimeInfoReport, error)
CheckDBConnection checks database connections.
Types ¶
type GrpcHealthServer ¶
type GrpcHealthServer struct{}
func (*GrpcHealthServer) Check ¶
func (s *GrpcHealthServer) Check(context.Context, *he.HealthCheckRequest) (*he.HealthCheckResponse, error)
func (*GrpcHealthServer) Watch ¶
func (s *GrpcHealthServer) Watch(*he.HealthCheckRequest, he.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.