Documentation
¶
Index ¶
- Variables
- func CallWebService(url string, method string, data map[string]interface{}, ...) (map[string]interface{}, error)
- func ConvertInterfaceToString(input interface{}) (string, error)
- func ConvertMapToString(data map[string]interface{}) (string, error)
- func Convertbase64ToMap(input string) (map[string]interface{}, error)
- func ConvertbytesToMap(data []byte) (map[string]interface{}, error)
- func ConvertstructToMap(input interface{}) map[string]interface{}
- func ConverttoBoolean(value interface{}) bool
- func ConverttoBooleanwithDefault(value interface{}, defaultvalue bool) bool
- func ConverttoFloat64(value interface{}) float64
- func ConverttoFloat64withDefault(value interface{}, defaultvalue float64) float64
- func ConverttoInt(value interface{}) int
- func ConverttoIntwithDefault(value interface{}, defaultvalue int) int
- func ConverttoString(value interface{}) string
- func ConverttoStringwithDefault(value interface{}, defaultvalue string) string
- func DecodeBase64String(input string) (string, error)
- func GetHostandIPAddress() (map[string]interface{}, error)
- type DBConn
- type DocDB
- type HeartbeatChecker
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 ConvertMapToString ¶
func Convertbase64ToMap ¶
func ConvertbytesToMap ¶
func ConvertstructToMap ¶
func ConvertstructToMap(input interface{}) map[string]interface{}
func ConverttoBoolean ¶
func ConverttoBoolean(value interface{}) bool
func ConverttoFloat64 ¶
func ConverttoFloat64(value interface{}) float64
func ConverttoInt ¶
func ConverttoInt(value interface{}) int
func ConverttoIntwithDefault ¶
func ConverttoString ¶
func ConverttoString(value interface{}) string
func DecodeBase64String ¶
func GetHostandIPAddress ¶
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.
Click to show internal directories.
Click to hide internal directories.