Documentation ¶
Index ¶
- func CheckEndpoint(network string, endpoint string) error
- func FileExist(file string) error
- func GetFolderFiles(folder string) []os.FileInfo
- func InterfaceToBytes(key interface{}) (error, []byte)
- func IsLocalIPAddress(ip string) error
- func LoadJSONFile(f string, object interface{}) error
- func ObjectToJsonByte(object interface{}) (error, []byte)
- func ObjectToJsonString(object interface{}) (error, string)
- func ObjectToJsonStringPretty(object interface{}) (error, string)
- func WrapCommunicator(ch interface{})
- type Communicator
- type Receive
- type Send
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceToBytes ¶
#InterfaceToBytes: convert a interface{} to a []byte
func IsLocalIPAddress ¶
func LoadJSONFile ¶
LoadJSONFile: function to dump data from the file f to object ¶
func ObjectToJsonByte ¶
ObjectToJsonByte: converst any object to a json byte ¶
func ObjectToJsonString ¶
ObjectToJsonString: converst any object to a json string ¶
func ObjectToJsonStringPretty ¶
ObjectToJsonString: converst any object to a json string ¶
func WrapCommunicator ¶
func WrapCommunicator(ch interface{})
Types ¶
type Communicator ¶
type Communicator interface { Send() Receive() }
Click to show internal directories.
Click to hide internal directories.