func startNetwork() error { if e := C.fdb_setup_network(); e != 0 { return Error{int(e)} } go func() { e := C.fdb_run_network() if e != 0 { log.Printf("Unhandled error in FoundationDB network thread: %v (%v)\n", C.GoString(C.fdb_get_error(e)), e) } }() networkStarted = true return nil }
func (e Error) Error() string { return fmt.Sprintf("FDB Error: %s (%d)", C.GoString(C.fdb_get_error(C.fdb_error_t(e))), e) }
func (e Error) Error() string { return fmt.Sprintf("FoundationDB error code %d (%s)", e.Code, C.GoString(C.fdb_get_error(C.fdb_error_t(e.Code)))) }