utils

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

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 BytesToString added in v0.3.0

func BytesToString(data []byte, encoding int) (string, error)

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.

func RegisterHealthCheckService

func RegisterHealthCheckService(s *grpc.Server)

func StringToBytes added in v0.3.0

func StringToBytes(str string, encoding int) ([]byte, error)

Types

type GrpcHealthServer

type GrpcHealthServer struct{}

func (*GrpcHealthServer) Check

func (*GrpcHealthServer) Watch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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