utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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

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

func RegisterHealthCheckService

func RegisterHealthCheckService(s *grpc.Server)

func StringToBytes

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

Types

type DbConnection

type DbConnection interface {
	// contains filtered or unexported methods
}

func CheckDBConnection

CheckDBConnection checks database connections.

type GrpcHealthServer

type GrpcHealthServer struct{}

func (*GrpcHealthServer) Check

func (*GrpcHealthServer) Watch

type PostgresObj

type PostgresObj struct {
	DBs map[string]*postgres.TGPGDB
	// contains filtered or unexported fields
}

type RedisObj

type RedisObj struct {
	DB *redis.TGRDDB
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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