com

package
v0.0.0-...-956f19d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiKey string
View Source
var DBTransactionTimeout int
View Source
var IACMessageBusClient signalr.Client
View Source
var IACNode map[string]interface{}
View Source
var Instance string
View Source
var InstanceID string
View Source
var InstanceName string
View Source
var InstanceType string
View Source
var MongoDBClients []*mongo.Client
View Source
var NodeHeartBeats map[string]interface{}
View Source
var SingalRConfig map[string]interface{}
View Source
var TransactionTimeout int

Functions

func CallWebService

func CallWebService(url string, method string, data map[string]interface{}, headers map[string]string) (map[string]interface{}, error)

func ConvertInterfaceToString

func ConvertInterfaceToString(input interface{}) (string, error)

func ConvertMapToString

func ConvertMapToString(data map[string]interface{}) (string, error)

func Convertbase64ToMap

func Convertbase64ToMap(input string) (map[string]interface{}, error)

func ConvertbytesToMap

func ConvertbytesToMap(data []byte) (map[string]interface{}, error)

func ConvertstructToMap

func ConvertstructToMap(input interface{}) map[string]interface{}

func ConverttoBoolean

func ConverttoBoolean(value interface{}) bool

func ConverttoBooleanwithDefault

func ConverttoBooleanwithDefault(value interface{}, defaultvalue bool) bool

func ConverttoFloat64

func ConverttoFloat64(value interface{}) float64

func ConverttoFloat64withDefault

func ConverttoFloat64withDefault(value interface{}, defaultvalue float64) float64

func ConverttoInt

func ConverttoInt(value interface{}) int

func ConverttoIntwithDefault

func ConverttoIntwithDefault(value interface{}, defaultvalue int) int

func ConverttoString

func ConverttoString(value interface{}) string

func ConverttoStringwithDefault

func ConverttoStringwithDefault(value interface{}, defaultvalue string) string

func DecodeBase64String

func DecodeBase64String(input string) (string, error)

func GetHostandIPAddress

func GetHostandIPAddress() (map[string]interface{}, error)

Types

type DBConn

type DBConn struct {
	DBType       string
	DBConnection string
	DBName       string
	DB           *sql.DB
	MaxIdleConns int
	MaxOpenConns int
}
var IACDBConn *DBConn

type DocDB

type DocDB struct {
	MongoDBClient        *mongo.Client
	MongoDBDatabase      *mongo.Database
	MongoDBCollection_TC *mongo.Collection
	/*
	 */
	DatabaseType       string
	DatabaseConnection string
	DatabaseName       string
}
var IACDocDBConn *DocDB

type HeartbeatChecker

type HeartbeatChecker interface {
	// Ping checks the health or connectivity of the service.
	// It returns an error if the service is unhealthy or disconnected.
	Ping() error

	// Connect establishes a connection to the service.
	Connect() error

	// Disconnect closes the connection to the service.
	Disconnect() error

	// Reconnect attempts to reconnect to the service.
	ReConnect() error
}

HeartbeatChecker is an interface that defines the required methods for performing heartbeat checks on various services.

Jump to

Keyboard shortcuts

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