Documentation
¶
Index ¶
- Variables
- func ArgFromFloat(arg float64) *python3.PyObject
- func ArgFromInt(arg int) *python3.PyObject
- func ArgFromListArray_Float(arg [][]float64) *python3.PyObject
- func ArgFromListArray_Int(arg [][]int) *python3.PyObject
- func ArgFromList_Float(arg []float64) *python3.PyObject
- func ArgFromList_Int(arg []int) *python3.PyObject
- func ArgFromString(arg string) *python3.PyObject
- func GetFunc(module *python3.PyObject, funcName string) *python3.PyObject
- func ImportModule(pyFolder string, pyFile string) *python3.PyObject
- func PyListList_Float(val *python3.PyObject) [][]float64
- func PyListToFloat(val *python3.PyObject) []float64
- func PyListToInt(val *python3.PyObject) []int
- func PyListTuple_Int(val *python3.PyObject) [][]int
- func PyToBool(val *python3.PyObject) bool
- func PyToFloat(val *python3.PyObject) float64
- func PyToInt(val *python3.PyObject) int
- func PyTupleToInt(val *python3.PyObject) []int
- func TypeCheck(val *python3.PyObject) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Client *python3.PyObject // the python file Interact *python3.PyObject // the python file Init *python3.PyObject Honest_run *python3.PyObject Attacker_run *python3.PyObject Node_run *python3.PyObject Malicious_node_run *python3.PyObject Test *python3.PyObject LF *python3.PyObject // label flipping attacker BF *python3.PyObject // bit flipping attacker Worker *python3.PyObject //honest worker )
the imported module seems not able to be imported multiple times errors appear when import the module the third time not sure the reason centralized initialize the funcs instead
Functions ¶
func ArgFromFloat ¶
func ArgFromInt ¶
func ArgFromListArray_Float ¶
{list of list} --> {list of list}
func ArgFromListArray_Int ¶
{list of list} --> {list of tuple}
func ArgFromList_Float ¶
func ArgFromList_Int ¶
func ArgFromString ¶
func PyListList_Float ¶
func PyListToFloat ¶
func PyListToInt ¶
func PyListTuple_Int ¶
func PyTupleToInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.