Documentation ¶
Index ¶
- Constants
- func Base64ToByteSlice(data string) ([]byte, error)
- func BuildConnectURL(baseURL, entityID string) string
- func BuildDisconnectURL(baseURL, entityID string) string
- func BuildGetOutputsURL(baseURL, entityID string) string
- func BuildRegisterURL(baseURL, entityID, bytesIn, bytesOut string) string
- func BuildSendInputsURL(baseURL, entityID, stringLength string) string
- func BuildUnregisterURL(baseURL, entityID string) string
- func ByteSliceToBase64URL(data []byte) string
- func CreateFolder(folderPath string) error
- func DisplayAndOptionallyExit(errorMessage string, exit bool)
- func NewGUID() string
- func RandomBytes(numBytes int) ([]byte, error)
- func RuneToSignals(r rune) ([]bool, bool)
- func SendRequest(url string)
- func SignalsToRune(signals []bool) (rune, bool)
- func WriteToBody(w http.ResponseWriter, message string)
Constants ¶
View Source
const ( InfoEntityRegistered = "Entity registered correctly" InfoEntityUnregistered = "Entity unregistered correctly" InfoEntityConnected = "Entity connected correctly" InfoEntityDisconnected = "Entity disconnected correctly" InfoInputDataSent = "Data sent correctly" InfoOutputDataValid = "Data outputs valid" ErrorAlreadyRegistered = "Entity already registered" ErrorNotRegistered = "Entity not registered" ErrorValueNotPositive = "Value is not a positive number" ErrorLengthInvalid = "length specified is invalid" ErrorEntityNotConnected = "Entity not connected" ErrorEntityAlreadyConnected = "Entity already connected" ErrorCodingFailed = "Encoding / Decoding failed" )
Variables ¶
This section is empty.
Functions ¶
func Base64ToByteSlice ¶
func BuildConnectURL ¶
func BuildDisconnectURL ¶
func BuildGetOutputsURL ¶
func BuildRegisterURL ¶
func BuildSendInputsURL ¶
func BuildUnregisterURL ¶
func ByteSliceToBase64URL ¶
func CreateFolder ¶
func RandomBytes ¶
func RuneToSignals ¶
RuneToSignals translates a single rune into 32 separate parallel signals represented as a slice of booleans
func SendRequest ¶
func SendRequest(url string)
func SignalsToRune ¶
SignalsToRune reconstructs a single rune from 32 separate parallel signals represented as a slice of booleans
func WriteToBody ¶
func WriteToBody(w http.ResponseWriter, message string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.