utils

package
v0.0.0-...-a2c6c8b Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package utils ...

This package contains all the utility functions used by the SDK This package is internal to the SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMessageToARF

func ConvertMessageToARF(tid string, op string, fn string, seq int, prms string) string

ConvertMessageToARF converts the message to ARF format it takes fields of message type and convert to ARF format(JSON)

func ConvertMetricToARF

func ConvertMetricToARF(operation string, id string, mettype int, value string) string

ConvertMetricToARF converts the metric to ARF format it takes fields of metrics and convert to ARF format(JSON)

func GetSeqTag

func GetSeqTag(op string) string

GetSeqTag return the sequence tag based on the operation if the operation is "fnC" it returns "seq" if the operation is "fnR" it returns "cseq" if other operation return empty

func IsValidHost

func IsValidHost(service string) bool

IsValidHost checks the given connection details are valid Returns true if valid hostName & hostPort Returns false if invalid hostName & hostPort

func IsValidPath

func IsValidPath(path string) bool

IsValidPath finds the given path is a valid one or not Returns true if valid Retruns false if invalid

Types

This section is empty.

Jump to

Keyboard shortcuts

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