utils

package
v0.7.21-Pre3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 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 RegisterHealthCheckService

func RegisterHealthCheckService(s *grpc.Server)

func StringToBytes added in v0.3.0

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

Types

type DbConnection added in v0.7.9

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

func CheckDBConnection added in v0.4.2

CheckDBConnection checks database connections.

type GrpcHealthServer

type GrpcHealthServer struct{}

func (*GrpcHealthServer) Check

func (*GrpcHealthServer) Watch

type PostgresObj added in v0.7.9

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

type RedisObj added in v0.7.9

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